From f7899f32923da555e96db34eb8562bec0cd64373 Mon Sep 17 00:00:00 2001 From: nnposter Date: Wed, 11 May 2022 21:33:47 +0000 Subject: [PATCH] Remove dead code branch --- scripts/redis-info.nse | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/redis-info.nse b/scripts/redis-info.nse index a5457d144..01ace90c5 100644 --- a/scripts/redis-info.nse +++ b/scripts/redis-info.nse @@ -90,15 +90,12 @@ local order = { local extras = { { + -- https://redis.io/commands/config-get/ "Bind addresses", {"CONFIG", "GET", "bind"}, function (data) if data[1] ~= "bind" or not data[2] then return nil end local restab = stringaux.strsplit(" ", data[2]) - if not restab or 0 == #restab then - stdnse.debug1("Failed to parse response from server") - return nil - end for i, ip in ipairs(restab) do if ip == '' then restab[i] = '0.0.0.0' end end