1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 10:09:03 +00:00

Initialize one global Lua state for running script scans, and reuse it in calls

to script_scan. This makes the NSE registry persist though all host groups.
This commit is contained in:
david
2008-11-19 01:44:09 +00:00
parent f14d86eccb
commit 3dd89201dc
3 changed files with 75 additions and 60 deletions

View File

@@ -1916,6 +1916,7 @@ void nmap_free_mem() {
if (o.extra_payload) free(o.extra_payload);
if (o.ipoptions) free(o.ipoptions);
#ifndef NOLUA
script_scan_free();
free(o.scriptargs);
#endif
}