mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mdns: Fix random crash when defalt service instance queried
Merges https://github.com/espressif/esp-idf/pull/8248
This commit is contained in:
parent
df1f9ec26e
commit
f46dffca62
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user