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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user