diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 41be93cc6..a274933d7 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -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;