mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
comment clarifying -1 case
This commit is contained in:
parent
bbbccd4e01
commit
9d2463b9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue