forked from osmocom/wireshark
This is UN*X-only, so it doesn't need to use the eth_close() wrapper;
close() will be available. svn path=/trunk/; revision=16411
This commit is contained in:
parent
db9fba20b4
commit
8e5823e0fe
|
@ -243,7 +243,7 @@ get_interface_list(int *err, char *err_str)
|
|||
#endif
|
||||
|
||||
g_free(ifc.ifc_buf);
|
||||
eth_close(sock);
|
||||
close(sock);
|
||||
|
||||
if (il == NULL) {
|
||||
/*
|
||||
|
@ -257,7 +257,7 @@ fail:
|
|||
if (il != NULL)
|
||||
free_interface_list(il);
|
||||
g_free(ifc.ifc_buf);
|
||||
eth_close(sock);
|
||||
close(sock);
|
||||
*err = CANT_GET_INTERFACE_LIST;
|
||||
return NULL;
|
||||
#endif /* HAVE_PCAP_FINDALLDEVS */
|
||||
|
|
Loading…
Reference in New Issue