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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user