From 189e6ac20133fa7ccf4ea0f812120060aeac802d Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 24 Feb 2017 15:47:50 +0000 Subject: [PATCH] Revert to older logic allowing rejection of protocol if server chooses a different one --- scripts/ssl-enum-ciphers.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse index a657fcdd1..70aa48f77 100644 --- a/scripts/ssl-enum-ciphers.nse +++ b/scripts/ssl-enum-ciphers.nse @@ -630,7 +630,7 @@ local function find_ciphers_group(host, port, protocol, group, scores) end if server_hello.protocol ~= protocol then ctx_log(1, protocol, "Protocol rejected. cipher: %s", server_hello.cipher) - protocol_worked = (protocol_worked == nil) and nil or false + protocol_worked = protocol_worked or nil break else protocol_worked = true