mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Fix socket leak in intf_name. This was reported by Brandon.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user