Skip to content

Commit

Permalink
Fix mDNS UDP leak when JoinMulticastGroup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kghost committed Dec 21, 2021
1 parent bf7feea commit 12ced44
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 12ced44

Please sign in to comment.