mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 15:41:31 +00:00
Fixed a bug where http.pipeline() would print a cryptic error if no requests were passed for it to perform. Changed it to print a warning if debugging is turned on, and return an empty set.
This commit is contained in:
parent
e0572ea362
commit
393110baf1
1 changed files with 6 additions and 0 deletions
|
|
@ -618,6 +618,12 @@ pipeline = function(host, port, allReqs, options)
|
|||
local j, opts
|
||||
local opts
|
||||
local recv_status = true
|
||||
|
||||
-- Check for an empty request
|
||||
if(#allReqs == 0) then
|
||||
stdnse.print_debug(1, "Warning: empty set of requests passed to http.pipeline()")
|
||||
return {}
|
||||
end
|
||||
|
||||
opts = {connect_timeout=5000, request_timeout=3000, recv_before=false}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue