mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
Fix incorrect assertions in Nsock poll engine
This commit is contained in:
parent
08cf89313d
commit
e048a3e91d
1 changed files with 1 additions and 2 deletions
|
|
@ -376,8 +376,7 @@ int poll_loop(struct npool *nsp, int msec_timeout) {
|
|||
* timeout) */
|
||||
combined_msecs = MIN((unsigned)event_msecs, (unsigned)msec_timeout);
|
||||
|
||||
assert(iod_count <= pinfo->used);
|
||||
assert(pinfo->used < pinfo->max_idx);
|
||||
assert(pinfo->used <= (pinfo->max_idx + 1));
|
||||
if (iod_count > 0 && pinfo->used > 0) {
|
||||
results_left = Poll(pinfo->events, pinfo->max_idx + 1, combined_msecs);
|
||||
if (results_left == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue