mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Fixed a couple nsock problems described in
http://seclists.org/nmap-dev/2012/q3/56. r29134 already addressed the issue but was incomplete. This replaces r29134 with an engine-agnostic approach, and additionally enforces the reset of IOD flags before use or re-use.
This commit is contained in:
@@ -208,8 +208,10 @@ int select_iod_unregister(mspool *nsp, msiod *iod) {
|
||||
{
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_master_r);
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_master_w);
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_master_x);
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_results_r);
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_results_w);
|
||||
CHECKED_FD_CLR(iod->sd, &sinfo->fds_results_x);
|
||||
}
|
||||
|
||||
if (sinfo->max_sd == iod->sd)
|
||||
|
||||
Reference in New Issue
Block a user