mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
add nil checks to address bug discovered by Mike
http://seclists.org/nmap-dev/2014/q2/120
This commit is contained in:
@@ -179,6 +179,9 @@ action = function(host, port)
|
||||
|
||||
local result
|
||||
result = snmp.fetchFirst(response)
|
||||
if not result then
|
||||
return
|
||||
end
|
||||
|
||||
if result == 3 then
|
||||
result = ( infile and infile:getContent() )
|
||||
|
||||
Reference in New Issue
Block a user