mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
mdns: Fix potential null deref for ANY query type
This commit is contained in:
committed by
David Čermák
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;
|
||||
|
Reference in New Issue
Block a user