Explorar o código

mDNS: Fix of collision detection during txt length calculation

Closes https://github.com/espressif/esp-idf/issues/6114
suren.gabrielyan %!s(int64=5) %!d(string=hai) anos
pai
achega
cc0ad534e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/mdns/mdns.c

+ 1 - 1
components/mdns/mdns.c

@@ -2158,7 +2158,7 @@ static int _mdns_check_txt_collision(mdns_service_t * service, const uint8_t * d
 
     mdns_txt_linked_item_t * txt = service->txt;
     while (txt) {
-        data_len += 2 + strlen(service->txt->key) + strlen(service->txt->value);
+        data_len += 2 + strlen(txt->key) + strlen(txt->value);
         txt = txt->next;
     }