]> granicus.if.org Git - esp-idf/commit
mdns: fix possible crash when packet scheduled to transmit contained service which...
authorDavid Cermak <cermak@espressif.com>
Mon, 25 Feb 2019 13:29:39 +0000 (14:29 +0100)
committerDavid Cermak <cermak@espressif.com>
Wed, 13 Mar 2019 15:32:50 +0000 (16:32 +0100)
commit03006a109b04b75b01b7c3c1c27f04cd9e72ad83
tree604aad13755bba533b28dcfc6f47eb5f7b60f047
parentcea310d5c595e0c849f65aa0bbd93c86252b9325
mdns: fix possible crash when packet scheduled to transmit contained service which might have been already removed

packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. this could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service
components/mdns/mdns.c
components/mdns/private_include/mdns_private.h