From c60d9ff983e0b1375a90190a78826b86a30f6be0 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sun, 1 Apr 2018 13:27:08 +0900 Subject: [PATCH] if(ret != 1) error --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index be0b1967a..93624af74 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -12152,7 +12152,7 @@ int openssl_test(void) return -5960; /* openSSL compatibility, if(inlen == 0)return 1; */ if (EVP_CipherUpdate(&en, (byte*)cipher, &outlen, - (byte*)cbcPlain, 0) == 0) + (byte*)cbcPlain, 0) != 1) return -5960; EVP_CIPHER_CTX_init(&en);