ipv6 cleanup
[project/mdnsd.git] / dns.c
diff --git a/dns.c b/dns.c
index 4f82849ef6f64e44c17a3ae5df7a6bc8f9818a19..1ff5d530f9e4f7d61775ec487b958eb25c57dbcc 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -95,13 +95,9 @@ dns_send_question(struct interface *iface, const char *question, int type, int u
 
        iov[1].iov_len = len;
 
-       if (unicast == iface->multicast)
-               iface = iface->peer;
-
+       DBG(1, "Q <- %s %s\n", dns_type_string(type), question);
        if (interface_send_packet(iface, iov, ARRAY_SIZE(iov)) < 0)
-               fprintf(stderr, "failed to send question\n");
-       else
-               DBG(1, "Q <- %s %s\n", dns_type_string(type), question);
+               perror("failed to send question :");
 }