mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user