mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Fix: Add null check for out parameter in NULL_CIPHER_TYPE case
Co-Authored-By: lealem@wolfssl.com <lealem@wolfssl.com>
This commit is contained in:
@@ -1060,6 +1060,9 @@ int wolfSSL_EVP_CipherUpdate(WOLFSSL_EVP_CIPHER_CTX *ctx,
|
||||
|
||||
switch (ctx->cipherType) {
|
||||
case WC_NULL_CIPHER_TYPE:
|
||||
if (out == NULL) {
|
||||
return WOLFSSL_FAILURE;
|
||||
}
|
||||
XMEMCPY(out, in, inl);
|
||||
*outl = inl;
|
||||
return WOLFSSL_SUCCESS;
|
||||
|
Reference in New Issue
Block a user