mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 18:41:40 +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)
|
alg_max_len = len(alg_name)
|
||||||
padding = '' if out.batch else ' ' * (alg_max_len - len(alg_name))
|
padding = '' if out.batch else ' ' * (alg_max_len - len(alg_name))
|
||||||
texts = []
|
texts = []
|
||||||
|
if len(alg_name.strip()) == 0:
|
||||||
|
return
|
||||||
if alg_name in alg_db[alg_type]:
|
if alg_name in alg_db[alg_type]:
|
||||||
alg_desc = alg_db[alg_type][alg_name]
|
alg_desc = alg_db[alg_type][alg_name]
|
||||||
ldesc = len(alg_desc)
|
ldesc = len(alg_desc)
|
||||||
|
Loading…
Reference in New Issue
Block a user