mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-23 07:17:29 +02:00
Fix deadly mdns crash
This commit is contained in:
@ -1614,6 +1614,7 @@ static void _mdns_remove_scheduled_answer(mdns_if_t tcpip_if, mdns_ip_protocol_t
|
||||
while (q) {
|
||||
if (q->tcpip_if == tcpip_if && q->ip_protocol == ip_protocol && q->distributed) {
|
||||
mdns_out_answer_t *a = q->answers;
|
||||
if (a) {
|
||||
if (a->type == type && a->service == service->service) {
|
||||
q->answers = q->answers->next;
|
||||
free(a);
|
||||
@ -1629,6 +1630,7 @@ static void _mdns_remove_scheduled_answer(mdns_if_t tcpip_if, mdns_ip_protocol_t
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
q = q->next;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user