From f893372ddd95c1a67e8e7a7cea462809ca638358 Mon Sep 17 00:00:00 2001 From: nnposter Date: Tue, 27 Nov 2018 20:14:55 +0000 Subject: [PATCH] Renamed variable to better reflect its nature --- scripts/https-redirect.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/https-redirect.nse b/scripts/https-redirect.nse index be8e1d48b..f52bd22ee 100644 --- a/scripts/https-redirect.nse +++ b/scripts/https-redirect.nse @@ -38,13 +38,13 @@ action = function (host, port) end if #responses == 0 then -- Have to send the probe ourselves. - local socket, result, is_ssl = comm.tryssl(host, port, "GET / HTTP/1.0\r\n\r\n") + local socket, result, proto = comm.tryssl(host, port, "GET / HTTP/1.0\r\n\r\n") if (not socket) then return nil end socket:close() - if is_ssl == "ssl" then + if proto == "ssl" then -- Unlikely, but we could have negotiated SSL already. port.version.service_tunnel = "ssl" nmap.set_port_version(host, port, "softmatched")