Fix return code in CRYPTO_mem_leaks_fp()

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Dr. Stephen Henson 2016-02-05 14:36:01 +00:00
parent 541e9565bb
commit c26e536986

View File

@ -694,8 +694,8 @@ int CRYPTO_mem_leaks_fp(FILE *fp)
BIO *b; BIO *b;
int ret; int ret;
if (mh == NULL) if (mh == NULL && amih == NULL)
return 0; return 1;
/* /*
* Need to turn off memory checking when allocated BIOs ... especially as * 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 * we're creating them at a time when we're trying to check we've not