dns: fix response to TYPE_PTR query master
authorRahul Thakur <rahul.thakur@iopsys.eu>
Thu, 8 Feb 2024 12:28:11 +0000 (17:58 +0530)
committerJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 14:36:33 +0000 (15:36 +0100)
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 <rahul.thakur@iopsys.eu>
dns.c

diff --git a/dns.c b/dns.c
index e849396e1276e25a051b36815c9bd73272f5e1a7..2078d8821c226e96de28197e96a313497459ca32 100644 (file)
--- 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] == '_') {