From 2038337907ae483f0885718846962a7292ddc4aa Mon Sep 17 00:00:00 2001 From: batrick Date: Mon, 8 Feb 2010 02:35:17 +0000 Subject: [PATCH] Fixed a global variable being set. I believe the intent was to set response.body and not result.body. --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 80fa3b887..dc37efda5 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -980,7 +980,7 @@ local function insert_cache (state, response) response = record.result; -- only modify copy cache[key], cache[#cache+1] = record, record; if state.no_cache_body then - result.body = ""; + response.body = ""; end if type(response.body) == "string" then cache.size = cache.size + #response.body;