summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Thakur2024-02-08 12:28:11 +0000
committerJohn Crispin2024-12-11 14:36:33 +0000
commit93458ac90911b84c7279070cd350405d203b702d (patch)
tree79da62fa5d4c050e842b54cbba6bf2d60a1a409f
parent68af31143b1fb36922befeb3eb332b3cb4911960 (diff)
downloadmdnsd-93458ac90911b84c7279070cd350405d203b702d.tar.gz
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 <rahul.thakur@iopsys.eu>
-rw-r--r--dns.c2
1 files changed, 0 insertions, 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] == '_') {