mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 10:17:30 +02:00
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-504 * Original commit: espressif/esp-idf@67051a286b
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
34f6d8dd33
commit
450cbf03cf
@ -289,6 +289,7 @@ typedef struct mdns_tx_packet_s {
|
||||
mdns_out_answer_t * answers;
|
||||
mdns_out_answer_t * servers;
|
||||
mdns_out_answer_t * additional;
|
||||
bool queued;
|
||||
} mdns_tx_packet_t;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user