mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 05:31:31 +00:00
Prevent potential nil dereference. Fixes #1885
This commit is contained in:
@@ -1787,6 +1787,7 @@ function get_url( u, options )
|
|||||||
if(not(validate_options(options))) then
|
if(not(validate_options(options))) then
|
||||||
return http_error("Options failed to validate.")
|
return http_error("Options failed to validate.")
|
||||||
end
|
end
|
||||||
|
options = options or {}
|
||||||
local parsed = url.parse( u )
|
local parsed = url.parse( u )
|
||||||
local port = {}
|
local port = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user