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

Fixes (tested against redis v2.9.9)

This commit is contained in:
henri
2013-05-06 21:11:44 +00:00
parent a25a1824d6
commit 2a03c65519

View File

@@ -86,7 +86,8 @@ action = function(host, port)
helper:close()
if ( redis.Response.Type.ERROR == response.type ) then
if ( "-ERR operation not permitted" == response.data ) then
if ( "-ERR operation not permitted" == response.data ) or
( "-NOAUTH Authentication required." == response.data ) then
return fail("Authentication required")
end
return fail(response.data)
@@ -100,7 +101,9 @@ action = function(host, port)
local kvs = {}
for _, item in ipairs(restab) do
local k, v = item:match("^([^:]*):(.*)$")
kvs[k] = v
if k ~= nil then
kvs[k] = v
end
end
local result = tab.new(2)