From dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 27 Jul 2001 02:24:47 +0000 Subject: [PATCH] Make sure *outl is always initialized in EVP_EncryptUpdate(). --- crypto/evp/evp_enc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c index 9a7a553bef..87e71e3c7f 100644 --- a/crypto/evp/evp_enc.c +++ b/crypto/evp/evp_enc.c @@ -197,6 +197,8 @@ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, *outl=bl; } } + else + *outl = 0; i=inl&(bl-1); inl-=i; if (inl > 0) -- 2.25.1