mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mDNS: Fix of text length calculation when detecting a collision
This commit is contained in:
parent
cc0ad534e9
commit
500edd412a
@ -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)
|
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) {
|
if (len == 1 && service->txt) {
|
||||||
return -1;//we win
|
return -1;//we win
|
||||||
} else if (len > 1 && !service->txt) {
|
} else if (len > 1 && !service->txt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user