From 705bedd6083b33e2d46b6fec3bb38213fc1767d9 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 6 Oct 2016 16:22:09 +0300 Subject: [PATCH] Do not output empty algorithm. --- ssh-audit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh-audit.py b/ssh-audit.py index 785a1ce..b5d22cd 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -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)