1
0
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:
david
2012-10-22 05:16:59 +00:00
parent 5fcc3bebd7
commit 5c8272b3c9

View File

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