X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=4d3106b7f8752684efc49698982bac6dcab68699;hb=eafb8003851eaea28dfe90b094fbd6be28a38c92;hp=c04169fec8a4809cb9e7b5516b5011e8d49a6e3a;hpb=148e8732e45435a051df1c3673cad0d5dc77492f;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,