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:
48cc4ad
)
Allocate bio_err before turning on memleak checks
author
Viktor Dukhovni
<openssl-users@dukhovni.org>
Sat, 6 Feb 2016 20:17:11 +0000
(15:17 -0500)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Sat, 6 Feb 2016 20:39:48 +0000
(15:39 -0500)
Reviewed-by: Tim Hudson <tjh@openssl.org>
test/danetest.c
patch
|
blob
|
history
diff --git
a/test/danetest.c
b/test/danetest.c
index 92a3b1ba330aa4e40784411a60fb9c60351974f5..cad751f4babf51e438f7f0ccacb37207e1f02567 100644
(file)
--- a/
test/danetest.c
+++ b/
test/danetest.c
@@
-471,6
+471,8
@@
int main(int argc, char *argv[])
CAfile = argv[2];
tlsafile = argv[3];
+ bio_err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
+
p = getenv("OPENSSL_DEBUG_MEMORY");
if (p != NULL && strcmp(p, "on") == 0)
CRYPTO_set_mem_debug(1);
@@
-483,8
+485,6
@@
int main(int argc, char *argv[])
return 0;
}
- bio_err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
-
SSL_library_init();
SSL_load_error_strings();