mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 10:17:30 +02:00
mdns: Fix random crash when defalt service instance queried
Merges https://github.com/espressif/esp-idf/pull/8248 * Original commit: espressif/esp-idf@f46dffca62
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
3c5b13ea0d
commit
20e6e9e7fe
@ -1553,7 +1553,7 @@ static bool _mdns_service_match_ptr_question(const mdns_service_t *service, cons
|
||||
return false;
|
||||
}
|
||||
if (question->host) {
|
||||
if (strcasecmp(service->instance, question->host) != 0) {
|
||||
if (strcasecmp(_mdns_get_service_instance_name(service), question->host) != 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user