diff --git a/src/dns.c b/src/dns.c
index ab38789ff858fc9842c50fed4f8e58e05cbe3184..476b6ddb2a2effded68e76af34152b20a634df51 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
/* 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,