1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-08 06:26:33 +00:00

Reverting commit r27082 due to incompatibility with Lua 5.2 [Patrik]

This commit is contained in:
patrik
2011-11-13 13:11:39 +00:00
parent 776a11146e
commit 8728f181d2

View File

@@ -623,10 +623,7 @@ Engine =
local cvar = {}
local condvar = nmap.condvar( cvar )
local script_env = getfenv(2)
-- get the SCRIPT_NAME of the executing script
self.options.script_name = self.options.script_name or script_env.SCRIPT_NAME
assert(self.options.script_name, "SCRIPT_NAME was not set in options.script_name")
assert(self.port.number and self.port.protocol, "Invalid port table detected")
self.port.service = self.port.service or "unknown"