mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Don't add rc to write_count when rc is negative.
Noticed by Tomas Hozza.
This commit is contained in:
parent
49e9ae4f57
commit
d81b4112a0
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue