mDNS: Fix of text length calculation when detecting a collision

* Original commit: espressif/esp-idf@be0ae1ebbb
This commit is contained in:
suren.gabrielyan authored and suren-gabrielyan-espressif committed 2022-05-27 17:44:23 +04:00
1 parent 487287157d
commit 2ffd22382d
1 file changed
+1 -1
+1 -1
View File
@@ -2147,7 +2147,7 @@ static int _mdns_check_srv_collision(mdns_service_t * service, uint16_t priority
*/
static int _mdns_check_txt_collision(mdns_service_t * service, const uint8_t * data, size_t len)
{
size_t data_len = 1;
size_t data_len = 0;
if (len == 1 && service->txt) {
return -1;//we win
} else if (len > 1 && !service->txt) {