mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Prevent Connect scan leaking 1 socket per hostgroup. Fixes #3086
This commit is contained in:
parent
b8a344ca20
commit
3704a278be
1 changed files with 5 additions and 2 deletions
|
|
@ -130,8 +130,11 @@ ConnectScanInfo::ConnectScanInfo() {
|
|||
FD_ZERO(&fds_except);
|
||||
}
|
||||
|
||||
/* Nothing really to do here. */
|
||||
ConnectScanInfo::~ConnectScanInfo() {}
|
||||
ConnectScanInfo::~ConnectScanInfo() {
|
||||
if (nextSD >= 0) {
|
||||
close(nextSD);
|
||||
}
|
||||
}
|
||||
|
||||
bool ConnectScanInfo::sendOK() {
|
||||
if (numSDs >= maxSocketsAllowed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue