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:
@@ -1043,7 +1043,9 @@ local function try_protocol(host, port, protocol, upresults)
|
|||||||
results["ciphers"] = ciphers
|
results["ciphers"] = ciphers
|
||||||
|
|
||||||
-- Format the compressor table.
|
-- Format the compressor table.
|
||||||
table.sort(compressors)
|
if compressors then
|
||||||
|
table.sort(compressors)
|
||||||
|
end
|
||||||
results["compressors"] = compressors
|
results["compressors"] = compressors
|
||||||
|
|
||||||
results["cipher preference"] = cipher_pref
|
results["cipher preference"] = cipher_pref
|
||||||
|
|||||||
Reference in New Issue
Block a user