diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse index 8bb99ed5f..fba2003ab 100644 --- a/scripts/ssl-enum-ciphers.nse +++ b/scripts/ssl-enum-ciphers.nse @@ -1043,7 +1043,9 @@ local function try_protocol(host, port, protocol, upresults) results["ciphers"] = ciphers -- Format the compressor table. - table.sort(compressors) + if compressors then + table.sort(compressors) + end results["compressors"] = compressors results["cipher preference"] = cipher_pref