mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +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
|
||||
return http_error("Options failed to validate.")
|
||||
end
|
||||
options = options or {}
|
||||
local parsed = url.parse( u )
|
||||
local port = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user