summaryrefslogtreecommitdiffstats
path: root/crypto/mem_dbg.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-02-05 14:36:01 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-02-05 16:02:21 +0000
commitc26e53698634d697fe01e28451c35220f2d3b7f9 (patch)
treeab3876c1a50151484f22b5281f2c1d59638391e8 /crypto/mem_dbg.c
parent541e9565bb5b860e9e0b5faeb5d474deeaef743b (diff)
Fix return code in CRYPTO_mem_leaks_fp()
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/mem_dbg.c')
-rw-r--r--crypto/mem_dbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c
index 3568efd791..05590442d1 100644
--- a/crypto/mem_dbg.c
+++ b/crypto/mem_dbg.c
@@ -694,8 +694,8 @@ int CRYPTO_mem_leaks_fp(FILE *fp)
BIO *b;
int ret;
- if (mh == NULL)
- return 0;
+ if (mh == NULL && amih == NULL)
+ return 1;
/*
* Need to turn off memory checking when allocated BIOs ... especially as
* we're creating them at a time when we're trying to check we've not