mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 18:29:03 +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')
|
if (name[len - 1] != '\0')
|
||||||
goto bail;
|
goto bail;
|
||||||
|
|
||||||
|
close(s);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
bail:
|
bail:
|
||||||
|
|||||||
Reference in New Issue
Block a user