forked from espressif/esp-protocols
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:
1 parent
34f6d8dd33
commit
450cbf03cf
2 files changed
+22
-3
No files matched your search
@@ -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