1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Prevent potential nil dereference. Fixes #1885

This commit is contained in:
nnposter
2020-01-11 03:15:34 +00:00
parent 81fc9943d3
commit 96e17c4f63

View File

@@ -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 = {}