mdns: Fix random crash when defalt service instance queried

Merges https://github.com/espressif/esp-idf/pull/8248
This commit is contained in:
David Cermak 2022-01-18 17:15:35 +01:00
parent df1f9ec26e
commit f46dffca62

View File

@ -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;
}
}