summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorkroy <kroy@kroy.io>2020-11-13 10:16:57 -0600
committerkroy <kroy@kroy.io>2020-11-13 10:16:57 -0600
commit873d2d41f3d8bd3ea65be11a650ea69523df426f (patch)
tree4953bb25eced690ca04d1a26716c008f97266774 /python
parent7106e90daf7c15f167f38f7715facef37c141f4f (diff)
downloadvyos-1x-873d2d41f3d8bd3ea65be11a650ea69523df426f.tar.gz
vyos-1x-873d2d41f3d8bd3ea65be11a650ea69523df426f.zip
T3060: Fixing a backwares check on dh length
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configverify.py2
1 files changed, 1 insertions, 1 deletions
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