mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fix socket leak in intf_name. This was reported by Brandon.
This commit is contained in:
parent
cf873707cd
commit
c32e8c5513
1 changed files with 2 additions and 0 deletions
|
|
@ -2856,6 +2856,8 @@ static int intf_name(int index, char *name, size_t len) {
|
|||
if (name[len - 1] != '\0')
|
||||
goto bail;
|
||||
|
||||
close(s);
|
||||
|
||||
return 0;
|
||||
|
||||
bail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue