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:
1f3b658
)
Ensure that failure to create the BIO in 'CRYPTO_mem_leaks_fp' doesn't
author
Geoff Thorpe
<geoff@openssl.org>
Tue, 28 Aug 2001 15:54:57 +0000
(15:54 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Tue, 28 Aug 2001 15:54:57 +0000
(15:54 +0000)
leave memory debugging turned off.
[Spotted by Götz Babin-Ebell]
crypto/mem_dbg.c
patch
|
blob
|
history
diff --git
a/crypto/mem_dbg.c
b/crypto/mem_dbg.c
index ed282330712a243e9c3eba001b2c02fb5c773078..1c4e04f51fc480f70e655815157096a9ef40efa5 100644
(file)
--- a/
crypto/mem_dbg.c
+++ b/
crypto/mem_dbg.c
@@
-741,9
+741,9
@@
void CRYPTO_mem_leaks_fp(FILE *fp)
* as we're creating them at a time when we're trying to check we've not
* left anything un-free()'d!! */
MemCheck_off();
- if ((b=BIO_new(BIO_s_file())) == NULL)
- return;
+ b = BIO_new(BIO_s_file());
MemCheck_on();
+ if(!b) return;
BIO_set_fp(b,fp,BIO_NOCLOSE);
CRYPTO_mem_leaks(b);
BIO_free(b);