X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=476b6ddb2a2effded68e76af34152b20a634df51;hb=4027126a75439c7d2b1d5572092fd291ef19ead6;hp=ab38789ff858fc9842c50fed4f8e58e05cbe3184;hpb=b72d521340383b6418fa6a75faca3bc45f06b14a;p=collectd.git diff --git a/src/dns.c b/src/dns.c index ab38789f..476b6ddb 100644 --- a/src/dns.c +++ b/src/dns.c @@ -212,7 +212,7 @@ static void *dns_child_loop (void __attribute__((unused)) *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,