From 96e17c4f6394459eac0ea70c3d397a47154b13c8 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 11 Jan 2020 03:15:34 +0000 Subject: [PATCH] Prevent potential nil dereference. Fixes #1885 --- nselib/http.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nselib/http.lua b/nselib/http.lua index 1c3f838a3..dde9f0fb2 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -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 = {}