summaryrefslogtreecommitdiffstats
path: root/crypto/ecdsa/ecdsatest.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-06-14 23:37:32 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-06-14 23:37:32 +0000
commitb3b67209447e3b7271bcd2f36deb64a5d8d7dcec (patch)
treeb1744d8e639ad2e8170439f6c3d1298f0827ce4a /crypto/ecdsa/ecdsatest.c
parent9f6ea7163b77996941d1bf4e5afde4385de3df9d (diff)
Correct the return codes for ecdsatest.
Submitted by: Nils Larsch Reviewed by: Geoff Thorpe
Diffstat (limited to 'crypto/ecdsa/ecdsatest.c')
-rw-r--r--crypto/ecdsa/ecdsatest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/ecdsa/ecdsatest.c b/crypto/ecdsa/ecdsatest.c
index f3371e4229..401b23c694 100644
--- a/crypto/ecdsa/ecdsatest.c
+++ b/crypto/ecdsa/ecdsatest.c
@@ -449,7 +449,7 @@ builtin_err:
int main(void)
{
- int ret = 0;
+ int ret = 1;
BIO *out;
out = BIO_new_fp(stdout, BIO_NOCLOSE);
@@ -477,9 +477,9 @@ int main(void)
if (!x9_62_tests(out)) goto err;
if (!test_builtin(out)) goto err;
- ret = 1;
+ ret = 0;
err:
- if (!ret)
+ if (ret)
BIO_printf(out, "\nECDSA test failed\n");
else
BIO_printf(out, "\nECDSA test passed\n");
@@ -491,6 +491,6 @@ err:
CRYPTO_mem_leaks(out);
if (out != NULL)
BIO_free(out);
- return(0);
+ return ret;
}
#endif