From 2264838cf8bd1784e618ea4558f7a8dba6aefc46 Mon Sep 17 00:00:00 2001 From: joao Date: Thu, 20 Aug 2009 03:12:54 +0000 Subject: [PATCH] Fixed bug where socket error messages (like EOF) were appended to the HTTP pipeline response --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index a71bc5b6a..f41d24229 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -648,7 +648,7 @@ pipeline = function(host, port, allReqs, options) response_raw = "" while recv_status do recv_status, response_tmp = socket:receive() - response_raw = response_raw .. response_tmp + if recv_status then response_raw = response_raw .. response_tmp end end -- Transform the raw response we received in a table of responses and