1
0
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:
patrik
2014-04-17 01:00:01 +00:00
parent d2009ab250
commit 91e1d21cc1
2 changed files with 6 additions and 0 deletions

View File

@@ -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() )