From: Dr. Stephen Henson Date: Fri, 27 Jul 2001 02:24:47 +0000 (+0000) Subject: Make sure *outl is always initialized in EVP_EncryptUpdate(). X-Git-Tag: OpenSSL_0_9_6c~147^2~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb;p=oweals%2Fopenssl.git Make sure *outl is always initialized in EVP_EncryptUpdate(). --- 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)