From 93458ac90911b84c7279070cd350405d203b702d 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 e849396..2078d88 100644 --- a/dns.c +++ b/dns.c @@ -382,8 +382,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] == '_') { -- 2.30.2