mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 10:59:02 +00:00
Fixed a formatting mistake in libdnet-stripped/src/intf.c and updated
NMAP_MODIFICATIONS to reflect a bug fix.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user