Skip to content

Commit

Permalink
Fix mDNS UDP leak when JoinMulticastGroup fails (#13184)
Browse files Browse the repository at this point in the history
  • Loading branch information
kghost authored and pull[bot] committed Jan 17, 2022
1 parent 9ddd9ae commit 1050880
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/dnssd/minimal_mdns/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ CHIP_ERROR ServerBase::Listen(chip::Inet::EndPointManager<chip::Inet::UDPEndPoin
// Log only as non-fatal error. Failure to join will mean we reply to unicast queries only.
ChipLogError(DeviceLayer, "MDNS failed to join multicast group on %s for address type %s: %s", interfaceName,
AddressTypeStr(addressType), chip::ErrorStr(err));

endPointHolder.reset();
}

#if CHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT
Expand Down

0 comments on commit 1050880

Please sign in to comment.