mirror of
https://github.com/nmap/nmap.git
synced 2025-12-13 11:19:02 +00:00
Report an error instead of crashing when pipeline_go() returns nil.
This commit is contained in:
@@ -100,6 +100,11 @@ function action(host, port)
|
|||||||
end
|
end
|
||||||
-- do the requests
|
-- do the requests
|
||||||
replies = http.pipeline_go(host, port, prequests)
|
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
|
for i, reply in ipairs(replies) do
|
||||||
count.tried = count.tried + 1
|
count.tried = count.tried + 1
|
||||||
-- We want this to be indexed by filename, not an integer, so we convert it
|
-- We want this to be indexed by filename, not an integer, so we convert it
|
||||||
|
|||||||
Reference in New Issue
Block a user