From 5e718499420fdc87147bb00ab6d9c8420b83e9bd Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Thu, 14 Sep 2017 20:07:32 +0200 Subject: [PATCH] properly exit dsa_int_validate_pqg --- src/pk/dsa/dsa_verify_key.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pk/dsa/dsa_verify_key.c b/src/pk/dsa/dsa_verify_key.c index e32777d..258e6cb 100644 --- a/src/pk/dsa/dsa_verify_key.c +++ b/src/pk/dsa/dsa_verify_key.c @@ -60,8 +60,7 @@ int dsa_int_validate_pqg(dsa_key *key, int *stat) if ( key->qord >= LTC_MDSA_MAX_GROUP || key->qord <= 15 || (unsigned long)key->qord >= mp_unsigned_bin_size(key->p) || (mp_unsigned_bin_size(key->p) - key->qord) >= LTC_MDSA_DELTA ) { - err = CRYPT_OK; - goto error; + return CRYPT_OK; } /* FIPS 186-4 chapter 4.1: 1 < g < p */