From 301f7aca5783ac90d4912bfe8b19a06efb95a29b Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Thu, 4 Apr 2019 12:39:47 -0400 Subject: [PATCH] Always return negative numbers so positive+negative != 0 --- test/crypto_kem/functest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/crypto_kem/functest.c b/test/crypto_kem/functest.c index 7f50608b..18023f1c 100644 --- a/test/crypto_kem/functest.c +++ b/test/crypto_kem/functest.c @@ -161,7 +161,7 @@ static int test_invalid_sk_a(void) { if (!memcmp(key_a, key_b, CRYPTO_BYTES)) { printf("ERROR invalid sk_a\n"); - return 1; + return -1; } } @@ -199,7 +199,7 @@ static int test_invalid_ciphertext(void) { if (!memcmp(key_a, key_b, CRYPTO_BYTES)) { printf("ERROR invalid ciphertext\n"); - return 1; + return -1; } }