From 2a902d05e11e75c0bcafa508a880501b6a9adbb9 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 7 Mar 2017 21:24:31 +0000 Subject: [PATCH] Fix parsing output from multiple redis commands returning strings. --- nselib/redis.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nselib/redis.lua b/nselib/redis.lua index 508124935..3c588185a 100644 --- a/nselib/redis.lua +++ b/nselib/redis.lua @@ -82,6 +82,8 @@ Response = { if( not(status) ) then return false, "Failed to receive data from server" end + -- move past the terminal CRLF + local status, crlf = self.socket:receive_buf("\r\n", false) return true, { data = data, type = Response.Type.BULK } end