mirror of
https://github.com/nmap/nmap.git
synced 2026-07-10 18:24:41 +00:00
Chack for a NULL pointer return in get_pool.
This commit is contained in:
parent
5fcc3bebd7
commit
5c8272b3c9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue