mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +01:00
Do not output empty algorithm.
This commit is contained in:
parent
aec576b57a
commit
705bedd608
@ -1337,6 +1337,8 @@ def output_algorithm(alg_db, alg_type, alg_name, alg_max_len=0):
|
||||
alg_max_len = len(alg_name)
|
||||
padding = '' if out.batch else ' ' * (alg_max_len - len(alg_name))
|
||||
texts = []
|
||||
if len(alg_name.strip()) == 0:
|
||||
return
|
||||
if alg_name in alg_db[alg_type]:
|
||||
alg_desc = alg_db[alg_type][alg_name]
|
||||
ldesc = len(alg_desc)
|
||||
|
Loading…
Reference in New Issue
Block a user