From 66fb5fba2232f8adadbaaf16fde4dbb4ee8c1ef3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 20 Aug 2016 00:07:58 +0000 Subject: [PATCH] Avoid an error thrown in ssl-enum-ciphers with connect problems --- scripts/ssl-enum-ciphers.nse | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse index 3ef9edac9..cdabd71fe 100644 --- a/scripts/ssl-enum-ciphers.nse +++ b/scripts/ssl-enum-ciphers.nse @@ -598,6 +598,9 @@ local function find_ciphers_group(host, port, protocol, group, scores) t["ciphers"] = group local records = try_params(host, port, t) + if not records then + return nil + end local handshake = records.handshake if handshake == nil then