diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_gen.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_gen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/dh/dh_gen.c b/src/lib/libcrypto/dh/dh_gen.c index 1bc37b987e..de566802d3 100644 --- a/src/lib/libcrypto/dh/dh_gen.c +++ b/src/lib/libcrypto/dh/dh_gen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_gen.c,v 1.14 2015/02/07 13:19:15 doug Exp $ */ | 1 | /* $OpenBSD: dh_gen.c,v 1.15 2015/02/09 15:49:22 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -115,9 +115,9 @@ dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb) | |||
115 | if (ctx == NULL) | 115 | if (ctx == NULL) |
116 | goto err; | 116 | goto err; |
117 | BN_CTX_start(ctx); | 117 | BN_CTX_start(ctx); |
118 | t1 = BN_CTX_get(ctx); | 118 | if ((t1 = BN_CTX_get(ctx)) == NULL) |
119 | t2 = BN_CTX_get(ctx); | 119 | goto err; |
120 | if (t1 == NULL || t2 == NULL) | 120 | if ((t2 = BN_CTX_get(ctx)) == NULL) |
121 | goto err; | 121 | goto err; |
122 | 122 | ||
123 | /* Make sure 'ret' has the necessary elements */ | 123 | /* Make sure 'ret' has the necessary elements */ |