mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Fix incorrect assertions in Nsock poll engine
This commit is contained in:
@@ -376,8 +376,7 @@ int poll_loop(struct npool *nsp, int msec_timeout) {
|
|||||||
* timeout) */
|
* timeout) */
|
||||||
combined_msecs = MIN((unsigned)event_msecs, (unsigned)msec_timeout);
|
combined_msecs = MIN((unsigned)event_msecs, (unsigned)msec_timeout);
|
||||||
|
|
||||||
assert(iod_count <= pinfo->used);
|
assert(pinfo->used <= (pinfo->max_idx + 1));
|
||||||
assert(pinfo->used < pinfo->max_idx);
|
|
||||||
if (iod_count > 0 && pinfo->used > 0) {
|
if (iod_count > 0 && pinfo->used > 0) {
|
||||||
results_left = Poll(pinfo->events, pinfo->max_idx + 1, combined_msecs);
|
results_left = Poll(pinfo->events, pinfo->max_idx + 1, combined_msecs);
|
||||||
if (results_left == -1)
|
if (results_left == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user