mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Prevent potential nil dereference. Fixes #1885
This commit is contained in:
parent
81fc9943d3
commit
96e17c4f63
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue