1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

[NSE] Set L_NSE to NULL if NSE is closed (close_nse is called).

Currently NSE is only opened and closed once in Nmap so this doesn't actually
fix a visible bug.
This commit is contained in:
batrick
2009-06-07 01:31:35 +00:00
parent 68bf664db6
commit 93b5922a60

View File

@@ -540,5 +540,8 @@ void script_scan (std::vector<Target *> &targets)
void close_nse (void)
{
if (L_NSE != NULL)
{
lua_close(L_NSE);
L_NSE = NULL;
}
}