aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-08-05 11:50:18 +0000
committerBodo Möller <bodo@openssl.org>1999-08-05 11:50:18 +0000
commit48c843c3672c49724b3ccb11204b7ae67b17c9cb (patch)
tree03ca1f8cbf340b0ca140c09d8dc28526f7b62fd8 /crypto/dh
parent90f14e251e2e9836a33bc7ac752abea48e3439af (diff)
downloadopenssl-48c843c3672c49724b3ccb11204b7ae67b17c9cb.tar.gz
New function DSA_dup_DH, and fixes for bugs that were found
while implementing and using it.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_gen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_gen.c b/crypto/dh/dh_gen.c
index 7534ec40a0..b7bcd2c7a4 100644
--- a/crypto/dh/dh_gen.c
+++ b/crypto/dh/dh_gen.c
@@ -92,6 +92,7 @@ DH *DH_generate_parameters(int prime_len, int generator,
BN_CTX *ctx=NULL;
ret=DH_new();
+ if (ret == NULL) goto err;
ctx=BN_CTX_new();
if (ctx == NULL) goto err;
t1= &(ctx->bn[0]);