aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl')
-rw-r--r--crypto/openssl/crypto/dh/dh_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/dh/dh_key.c b/crypto/openssl/crypto/dh/dh_key.c
index 649aa5cffde4..3faf94a7f704 100644
--- a/crypto/openssl/crypto/dh/dh_key.c
+++ b/crypto/openssl/crypto/dh/dh_key.c
@@ -165,7 +165,7 @@ static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS)
{
DHerr(DH_F_DH_COMPUTE_KEY,DH_R_MODULUS_TOO_LARGE);
- goto err;
+ return -1;
}
ctx = BN_CTX_new();