summaryrefslogtreecommitdiffstats
path: root/test/danetest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-14 23:00:03 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-02-05 17:02:21 +0100
commit541e9565bb5b860e9e0b5faeb5d474deeaef743b (patch)
tree5fa066496061cc850728f0e0790e48810f19c8ae /test/danetest.c
parentRestore -no_comp switch for backwards compatible behaviour (diff)
downloadopenssl-541e9565bb5b860e9e0b5faeb5d474deeaef743b.tar.xz
openssl-541e9565bb5b860e9e0b5faeb5d474deeaef743b.zip
If memory debugging enabled return error on leaks.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/danetest.c')
-rw-r--r--test/danetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/danetest.c b/test/danetest.c
index 636f629617..5c4a785c00 100644
--- a/test/danetest.c
+++ b/test/danetest.c
@@ -526,7 +526,8 @@ end:
ERR_remove_thread_state(NULL);
EVP_cleanup();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
- CRYPTO_mem_leaks(bio_err);
+ if (CRYPTO_mem_leaks(bio_err) <= 0)
+ ret = 1;
#endif
BIO_free(bio_err);
EXIT(ret);