1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix type comparisons to library names. Closes #1158

This commit is contained in:
dmiller
2018-03-28 20:17:43 +00:00
parent 689ea0e05d
commit 02e3add66e
3 changed files with 3 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ action = function(host, port)
end
-- check if match arugment is a table or a single value
if match and type(match) ~= table then
if match and type(match) ~= 'table' then
to_be_searched['User Pattern 1'] = {}
table.insert(to_be_searched['User Pattern 1'], match)
elseif type(match) == 'table' then