forked from espressif/esp-idf
Merge branch 'bugfix/mdns_service_instance_crash' into 'master'
mdns: Fix random crash when defalt service instance queried Closes IDFGH-6606 See merge request espressif/esp-idf!16850
This commit is contained in:
@@ -1553,7 +1553,7 @@ static bool _mdns_service_match_ptr_question(const mdns_service_t *service, cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (question->host) {
|
if (question->host) {
|
||||||
if (strcasecmp(service->instance, question->host) != 0) {
|
if (strcasecmp(_mdns_get_service_instance_name(service), question->host) != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user