1
0
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:
batrick
2011-04-05 19:34:34 +00:00
parent bbbccd4e01
commit 9d2463b9cd

View File

@@ -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);
}