]> granicus.if.org Git - esp-idf/commit
mdns: fix possible crash when probing on particular interface with duplicated service...
authorDavid Cermak <cermak@espressif.com>
Mon, 11 Mar 2019 10:49:29 +0000 (11:49 +0100)
committerDavid Cermak <cermak@espressif.com>
Wed, 13 Mar 2019 15:33:21 +0000 (16:33 +0100)
commitd5938abf793112c3b6e100c7358e18ecf7665a91
tree4db9a7802a867a53b41994c8f2ad20754ffc3df4
parent58ed22461fc5dc9b93dedf154d3c839c026eb73a
mdns: fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network

Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash.
Resolution: Keep only one instance of a service in the probing structure.
components/mdns/mdns.c