1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Report an error instead of crashing when pipeline_go() returns nil.

This commit is contained in:
henri
2012-09-05 20:55:04 +00:00
parent db4b8dc603
commit 902000afad

View File

@@ -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