Commit 4894dcad authored by Pauli's avatar Pauli
Browse files

Coverity CID 1444963: Null pointer dereferences

parent 9acbe07d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -620,7 +620,11 @@ int EVP_EncryptFinal_ex(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_ENCRYPTFINAL_EX, EVP_R_NO_CIPHER_SET);
        return 0;
    }
    if (ctx->cipher->prov == NULL)
        goto legacy;

    blocksize = EVP_CIPHER_CTX_block_size(ctx);