projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360e506
)
Make sure everything that may be freed is allocated or initiated.
author
Richard Levitte
<levitte@openssl.org>
Fri, 10 Jan 2003 08:59:46 +0000
(08:59 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 10 Jan 2003 08:59:46 +0000
(08:59 +0000)
PR: 446
crypto/bn/bn_prime.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_prime.c
b/crypto/bn/bn_prime.c
index 43eb9e6dfd0bf5eba8220db8217e04043c403f2d..6c16029957ed7f43eac0c4783e3c68989121af4c 100644
(file)
--- a/
crypto/bn/bn_prime.c
+++ b/
crypto/bn/bn_prime.c
@@
-163,9
+163,9
@@
int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
BN_CTX *ctx;
int checks = BN_prime_checks_for_size(bits);
+ BN_init(&t);
ctx=BN_CTX_new();
if (ctx == NULL) goto err;
- BN_init(&t);
loop:
/* make a random number and set the top and bottom bits */
if (add == NULL)