From 47bca28b1d69c25922783377fcda6ba0b6ffc5ec Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Tue, 30 May 2017 07:45:27 +0900 Subject: [PATCH] Fix compatibility, inl == 0, EVP_CipherUpdate --- wolfcrypt/src/evp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index 7225e7424..b49c83422 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -313,7 +313,8 @@ WOLFSSL_API int wolfSSL_EVP_CipherUpdate(WOLFSSL_EVP_CIPHER_CTX *ctx, int fill; *outl = 0; - if ((ctx == NULL) || (inl < 0))return BAD_FUNC_ARG; + if ((ctx == NULL) || (inl < 0) || + (outl == NULL)|| (out == NULL) || (in == NULL))return BAD_FUNC_ARG; WOLFSSL_ENTER("wolfSSL_EVP_CipherUpdate"); if (inl == 0) return WOLFSSL_FAILURE;