]> 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 09:22:41 +0000 (10:22 +0100)
commit265e983a452a7eaefc1662cdc0e6ed839a37fe1a
tree9a2ae27bfb738f922802eadaf90aec129202ee8f
parentc87f0cb6cad3c36b077f4aaeb1ca52fe6ed0cdaf
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.

Closes IDF-498
components/mdns/mdns.c