mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix condvar("signal") when there is nothing waiting on the condvar. The
logic was while (unsigned >= 0) which is an infinite loop.
This commit is contained in:
parent
6399fe23c3
commit
a362d4c48f
1 changed files with 2 additions and 0 deletions
|
|
@ -321,6 +321,8 @@ static int aux_condvar (lua_State *L)
|
|||
return nse_yield(L, 0, NULL);
|
||||
case SIGNAL:
|
||||
n = lua_objlen(L, lua_upvalueindex(1));
|
||||
if (n == 0)
|
||||
n = 1;
|
||||
break;
|
||||
case BROADCAST:
|
||||
n = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue