mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 20:59:02 +00:00
fixed bug in snma.lua: fetchResponseValues(): wrong "local" when decoding
This commit is contained in:
@@ -526,7 +526,8 @@ end
|
|||||||
--@result Table with all decoded responses and their OIDs
|
--@result Table with all decoded responses and their OIDs
|
||||||
function fetchResponseValues(resp)
|
function fetchResponseValues(resp)
|
||||||
if (type(resp) == "string") then
|
if (type(resp) == "string") then
|
||||||
local _, resp = decode(resp)
|
local _
|
||||||
|
_, resp = decode(resp)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (type(resp) ~= "table") then
|
if (type(resp) ~= "table") then
|
||||||
|
|||||||
Reference in New Issue
Block a user