add good bye messages
[project/mdnsd.git] / dns.c
diff --git a/dns.c b/dns.c
index 1ff5d530f9e4f7d61775ec487b958eb25c57dbcc..d8c152948b86cf3e42479385f709e9ca9035ad51 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -331,7 +331,7 @@ parse_question(struct interface *iface, char *name, struct dns_question *q)
                break;
 
        case TYPE_PTR:
-               service_announce_services(iface, name);
+               service_announce_services(iface, name, announce_ttl);
                service_reply(iface, name, announce_ttl);
                break;
 
@@ -341,7 +341,7 @@ parse_question(struct interface *iface, char *name, struct dns_question *q)
                if (host)
                        *host = '\0';
                if (!strcmp(mdns_hostname, name))
-                       service_reply_a(iface, q->type, announce_ttl);
+                       service_reply_a(iface, announce_ttl);
                break;
        };
 }