1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 21:51:28 +00:00

Avoid a crash when no compressors are listed. Closes #945

This commit is contained in:
dmiller
2017-07-27 03:17:42 +00:00
parent 1139e8bf94
commit dc6d29371f

View File

@@ -1043,7 +1043,9 @@ local function try_protocol(host, port, protocol, upresults)
results["ciphers"] = ciphers
-- Format the compressor table.
if compressors then
table.sort(compressors)
end
results["compressors"] = compressors
results["cipher preference"] = cipher_pref