From 93b5922a60e92e1794c450a0894c7e5854825a97 Mon Sep 17 00:00:00 2001 From: batrick Date: Sun, 7 Jun 2009 01:31:35 +0000 Subject: [PATCH] [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. --- nse_main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nse_main.cc b/nse_main.cc index 98347a2da..5e29afff2 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -540,5 +540,8 @@ void script_scan (std::vector &targets) void close_nse (void) { if (L_NSE != NULL) + { lua_close(L_NSE); + L_NSE = NULL; + } }