From 902000afad62221f918fdeb174d00a04fba2b527 Mon Sep 17 00:00:00 2001 From: henri Date: Wed, 5 Sep 2012 20:55:04 +0000 Subject: [PATCH] Report an error instead of crashing when pipeline_go() returns nil. --- scripts/http-git.nse | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/http-git.nse b/scripts/http-git.nse index b027a7afa..f327e198d 100644 --- a/scripts/http-git.nse +++ b/scripts/http-git.nse @@ -100,6 +100,11 @@ function action(host, port) end -- do the requests replies = http.pipeline_go(host, port, prequests) + if replies == nil then + stdnse.print_debug("%s: pipeline_go() error. Aborting.", SCRIPT_NAME) + return nil + end + for i, reply in ipairs(replies) do count.tried = count.tried + 1 -- We want this to be indexed by filename, not an integer, so we convert it