projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If memory debugging enabled return error on leaks.
[openssl.git]
/
test
/
dsatest.c
diff --git
a/test/dsatest.c
b/test/dsatest.c
index 8190e6f2eedad60e8789895cafbdd9dda8478b19..f36b4494d077eb5bbd2f64deb0f70606de05bcf3 100644
(file)
--- a/
test/dsatest.c
+++ b/
test/dsatest.c
@@
-1,4
+1,3
@@
-/* crypto/dsa/dsatest.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-216,7
+215,8
@@
int main(int argc, char **argv)
ERR_remove_thread_state(NULL);
ERR_free_strings();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
ERR_remove_thread_state(NULL);
ERR_free_strings();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
- CRYPTO_mem_leaks(bio_err);
+ if (CRYPTO_mem_leaks(bio_err) <= 0)
+ ret = 0;
#endif
BIO_free(bio_err);
bio_err = NULL;
#endif
BIO_free(bio_err);
bio_err = NULL;
@@
-248,7
+248,7
@@
static int dsa_cb(int p, int n, BN_GENCB *arg)
(void)BIO_flush(BN_GENCB_get_arg(arg));
if (!ok && (p == 0) && (num > 1)) {
(void)BIO_flush(BN_GENCB_get_arg(arg));
if (!ok && (p == 0) && (num > 1)) {
- BIO_printf(
(BIO *)arg
, "error in dsatest\n");
+ BIO_printf(
BN_GENCB_get_arg(arg)
, "error in dsatest\n");
return 0;
}
return 1;
return 0;
}
return 1;