diff --git a/libdnet-stripped/NMAP_MODIFICATIONS b/libdnet-stripped/NMAP_MODIFICATIONS index 5c63177a7..55563da2a 100644 --- a/libdnet-stripped/NMAP_MODIFICATIONS +++ b/libdnet-stripped/NMAP_MODIFICATIONS @@ -3,6 +3,8 @@ $Id$ This is Dug Song's excellent Libdnet networking library version 1.12. It has been stripped down for inclusion within Nmap and modified as follows: +o Fixed a case where an open file may not be closed in intf_loop() + o Removed the following directories: python, test, man, trunk diff --git a/libdnet-stripped/src/intf.c b/libdnet-stripped/src/intf.c index d3deffe32..ebb3d92cd 100644 --- a/libdnet-stripped/src/intf.c +++ b/libdnet-stripped/src/intf.c @@ -678,9 +678,9 @@ intf_loop(intf_t *intf, intf_handler callback, void *arg) intf->ifc.ifc_len = sizeof(intf->ifcbuf); if (ioctl(intf->fd, SIOCGIFCONF, &intf->ifc) < 0) { - fclose(fp); + fclose(fp); return (-1); - } + } ret = 0; while (fgets(buf, sizeof(buf), fp) != NULL) {