1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 06:09:00 +00:00

Handle empty snmpcommunity correctly

This commit is contained in:
dmiller
2012-08-01 17:50:00 +00:00
parent 7fc0f3ee6d
commit 762207f02e

View File

@@ -276,7 +276,11 @@ action = function(host, port)
if creds_iter then
local account = creds_iter()
if account then
nmap.registry.snmpcommunity = account.pass
if account.pass == "<empty>" then
nmap.registry.snmpcommunity = ""
else
nmap.registry.snmpcommunity = account.pass
end
end
end