Don't call dns_reply_a from service_reply
[project/mdnsd.git] / dns.c
diff --git a/dns.c b/dns.c
index 7ca705ea416653099bde9a3329c81119d5bb9bae..aac1de1e5be6ef572db94a2a3d6ce603c0bdaed9 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -360,8 +360,10 @@ parse_question(struct interface *iface, char *name, struct dns_question *q)
 
        switch (q->type) {
        case TYPE_ANY:
-               if (!strcmp(name, mdns_hostname_local))
+               if (!strcmp(name, mdns_hostname_local)) {
                        service_reply(iface, NULL, announce_ttl);
+                       dns_reply_a(iface, announce_ttl);
+               }
                break;
 
        case TYPE_PTR: