1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 18:19:05 +00:00

Don't add rc to write_count when rc is negative.

Noticed by Tomas Hozza.
This commit is contained in:
david
2012-11-26 22:13:30 +00:00
parent 49e9ae4f57
commit d81b4112a0

View File

@@ -570,7 +570,8 @@ void handle_write_result(mspool *ms, msevent *nse, enum nse_status status) {
}
}
nse->iod->write_count+= res;
if (res >= 0)
nse->iod->write_count += res;
}
if (nse->event_done && nse->iod->sd != -1) {