mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
comment clarifying -1 case
This commit is contained in:
@@ -757,7 +757,7 @@ static int l_set_timeout (lua_State *L)
|
||||
{
|
||||
nse_nsock_udata *nu = check_nsock_udata(L, 1, 0);
|
||||
nu->timeout = luaL_checkint(L, 2);
|
||||
if ((int) nu->timeout < -1)
|
||||
if ((int) nu->timeout < -1) /* -1 is no timeout */
|
||||
return luaL_error(L, "Negative timeout: %d", nu->timeout);
|
||||
return success(L);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user