From a026d1966e319d8794811abeaf8fab5a408da3b6 Mon Sep 17 00:00:00 2001 From: Rahul Thakur Date: Thu, 8 Feb 2024 17:58:11 +0530 Subject: [PATCH] dns: fix response to TYPE_PTR query In case of PTR query, sending response of TYPE_A is not needed. As per the rfc 6763, the responder in this case should send list of its services. Signed-off-by: Rahul Thakur --- dns.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dns.c b/dns.c index 2b5a390..355278b 100644 --- a/dns.c +++ b/dns.c @@ -380,8 +380,6 @@ parse_question(struct interface *iface, struct sockaddr *from, char *name, struc case TYPE_PTR: if (!strcmp(name, C_DNS_SD)) { - dns_reply_a(iface, to, announce_ttl, NULL); - dns_reply_a_additional(iface, to, announce_ttl); service_announce_services(iface, to, announce_ttl); } else { if (name[0] == '_') {