]> 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:24:03 +0000 (16:24 +0100)
commit8fe4007dfaca56560a49c3240fd125d58dba8160
tree480a2c98a815424449348ab12043934f85d89775
parent56918682f9b90701ab7f70dcd06f0fc2ab1f48e8
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

Closes IDF-438
components/mdns/mdns.c
components/mdns/private_include/mdns_private.h