From 873d2d41f3d8bd3ea65be11a650ea69523df426f Mon Sep 17 00:00:00 2001 From: kroy Date: Fri, 13 Nov 2020 10:16:57 -0600 Subject: T3060: Fixing a backwares check on dh length --- python/vyos/configverify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 2a5dc7af2..675dac5b1 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -278,7 +278,7 @@ def verify_diffie_hellman_length(file, min_keysize): prog = re.compile('\d+\s+bit') if prog.search(out): bits = prog.search(out)[0].split()[0] - if int(min_keysize) >= int(bits): + if int(bits) >= int(min_keysize): return True return False -- cgit v1.2.3