Commit ff6c7cc6 authored by Pauli's avatar Pauli
Browse files

Coverity CID 1444952: Null pointer dereferences

parent 1702c500
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -843,6 +843,10 @@ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
 legacy:
 legacy:


    *outl = 0;
    *outl = 0;
    if (ctx->cipher == NULL) {
        EVPerr(EVP_F_EVP_DECRYPTFINAL_EX, EVP_R_NO_CIPHER_SET);
        return 0;
    }


    if (ctx->cipher->flags & EVP_CIPH_FLAG_CUSTOM_CIPHER) {
    if (ctx->cipher->flags & EVP_CIPH_FLAG_CUSTOM_CIPHER) {
        i = ctx->cipher->do_cipher(ctx, out, NULL, 0);
        i = ctx->cipher->do_cipher(ctx, out, NULL, 0);