Commit d2c2e49e authored by Pauli's avatar Pauli
Browse files

Coverity CID 1444958: Null pointer dereferences

parent 0484af22
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -699,7 +699,11 @@ int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
        return 0;
    }

    if (ctx->cipher == NULL || ctx->cipher->prov == NULL)
    if (ctx->cipher == NULL) {
        EVPerr(EVP_F_EVP_DECRYPTUPDATE, EVP_R_NO_CIPHER_SET);
        return 0;
    }
    if (ctx->cipher->prov == NULL)
        goto legacy;

    blocksize = EVP_CIPHER_CTX_block_size(ctx);