1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Use gh_heap_remove instead of gh_heap_pop when result not needed.

This commit is contained in:
dmiller
2020-10-13 19:13:31 +00:00
parent b9bb2ec387
commit 009b63b6a9

View File

@@ -1214,7 +1214,7 @@ void process_expired_events(struct npool *nsp) {
if (!event_timedout(nse))
break;
gh_heap_pop(&nsp->expirables);
gh_heap_remove(&nsp->expirables, hnode);
process_event(nsp, NULL, nse, EV_NONE);
assert(nse->event_done);
update_first_events(nse);