1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix incorrect assertions in Nsock poll engine

This commit is contained in:
dmiller
2025-08-09 02:52:55 +00:00
parent 08cf89313d
commit e048a3e91d

View File

@@ -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)