mirror of
https://github.com/nmap/nmap.git
synced 2026-02-04 12:36:34 +00:00
Chack for a NULL pointer return in get_pool.
This commit is contained in:
@@ -95,6 +95,7 @@ static nsock_pool get_pool (lua_State *L)
|
||||
{
|
||||
nsock_pool *nsp;
|
||||
nsp = (nsock_pool *) lua_touserdata(L, NSOCK_POOL);
|
||||
assert(nsp != NULL);
|
||||
assert(*nsp != NULL);
|
||||
return *nsp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user