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:
Guy Harris 2005-11-07 08:35:28 +00:00
parent db9fba20b4
commit 8e5823e0fe
1 changed files with 2 additions and 2 deletions

View File

@ -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 */