mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-22 23:07:28 +02:00
mdns: fixed mdns crashing on reception of txt packet without a corresponding service
closes #2866 * Original commit: espressif/esp-idf@af48977f21
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
84cbb1f3cf
commit
98d2c1a073
@ -2886,7 +2886,7 @@ void mdns_parse_packet(mdns_rx_packet_t * packet)
|
||||
col = 1;
|
||||
} else if (!clas) {
|
||||
col = -1;
|
||||
} else {
|
||||
} else if (service) { // only detect txt collision if service existed
|
||||
col = _mdns_check_txt_collision(service->service, data_ptr, data_len);
|
||||
}
|
||||
if (col && !_mdns_server->interfaces[packet->tcpip_if].pcbs[packet->ip_protocol].probe_running) {
|
||||
|
Reference in New Issue
Block a user