mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Avoid a crash when no compressors are listed. Closes #945
This commit is contained in:
parent
1139e8bf94
commit
dc6d29371f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue