1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29: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:
henri
2012-07-09 16:45:49 +00:00
parent 47d8b75fcf
commit 87fcddad2b
5 changed files with 18 additions and 11 deletions

View File

@@ -121,6 +121,8 @@ nsock_iod nsi_new2(nsock_pool nsockp, int sd, void *userdata) {
nsi->userdata = userdata;
nsi->nsp = (mspool *)nsockp;
nsi->_flags = 0;
nsi->read_count = 0;
nsi->write_count = 0;