mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mdns: Fix potential null deref for ANY query type
This commit is contained in:
parent
f010729e74
commit
99dd8eedb1
@ -4170,7 +4170,7 @@ static mdns_search_once_t * _mdns_search_find_from(mdns_search_once_t * s, mdns_
|
||||
continue;
|
||||
}
|
||||
if (s->type != MDNS_TYPE_PTR) {
|
||||
if (!strcasecmp(name->host, s->instance)) {
|
||||
if (s->instance && strcasecmp(name->host, s->instance) == 0) {
|
||||
return s;
|
||||
}
|
||||
s = s->next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user