summaryrefslogtreecommitdiff
path: root/caputils
diff options
context:
space:
mode:
Diffstat (limited to 'caputils')
-rw-r--r--caputils/capture-pcap-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/caputils/capture-pcap-util.c b/caputils/capture-pcap-util.c
index a41b7668d5..b8b71e3bb5 100644
--- a/caputils/capture-pcap-util.c
+++ b/caputils/capture-pcap-util.c
@@ -890,7 +890,7 @@ get_data_link_types(pcap_t *pch, interface_options *interface_opts,
*/
pcap_close(pch);
if (err_str != NULL) {
- if (nlt == PCAP_ERROR)
+ if (nlt == -1)
*err_str = g_strdup_printf("pcap_list_datalinks() failed: %s",
pcap_geterr(pch));
else