X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdns.c;h=4d3106b7f8752684efc49698982bac6dcab68699;hb=068e095e95a481834819a588d9081b4c8608d057;hp=c04169fec8a4809cb9e7b5516b5011e8d49a6e3a;hpb=b4d9bd23f3e04f9b42204d9954842524e2a7eb61;p=collectd.git diff --git a/src/dns.c b/src/dns.c index c04169fe..4d3106b7 100644 --- a/src/dns.c +++ b/src/dns.c @@ -212,7 +212,7 @@ static void *dns_child_loop (void *dummy) /* Passing `pcap_device == NULL' is okay and the same as passign "any" */ DEBUG ("Creating PCAP object.."); - pcap_obj = pcap_open_live (pcap_device, + pcap_obj = pcap_open_live ((pcap_device != NULL) ? pcap_device : "any", PCAP_SNAPLEN, 0 /* Not promiscuous */, interval_g,