mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
294b15ce81
commit
9c374417eb
2 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue