mdns: abort packet analysis if conflict detected

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
David Girault 2019-06-14 17:35:00 +02:00 committed by Simon Goldschmidt
parent 6302423d7f
commit 2441c6fa3f

View File

@ -1949,6 +1949,8 @@ mdns_handle_response(struct mdns_packet *pkt, struct netif *netif)
break;
}
}
if (i < MDNS_MAX_SERVICES)
break;
}
/* Perform conflict resolution (RFC6762 section 9):
* We assume a conflict if the hostname or service name matches the answers