diff options
Diffstat (limited to 'pcap-util-unix.c')
-rw-r--r-- | pcap-util-unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-util-unix.c b/pcap-util-unix.c index 9f4a6798d7..c377e91657 100644 --- a/pcap-util-unix.c +++ b/pcap-util-unix.c @@ -243,7 +243,7 @@ get_interface_list(int *err, char *err_str) #endif g_free(ifc.ifc_buf); - close(sock); + eth_close(sock); if (il == NULL) { /* @@ -257,7 +257,7 @@ fail: if (il != NULL) free_interface_list(il); g_free(ifc.ifc_buf); - close(sock); + eth_close(sock); *err = CANT_GET_INTERFACE_LIST; return NULL; #endif /* HAVE_PCAP_FINDALLDEVS */ |