diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-07-27 02:24:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-07-27 02:24:47 +0000 |
commit | dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb (patch) | |
tree | bad0298cac283fee89284626c475cd8413f48252 /crypto/evp/evp_enc.c | |
parent | 1241126adf6c451d6a7115ffdc68fa64c4d55593 (diff) |
Make sure *outl is always initialized in EVP_EncryptUpdate().
Diffstat (limited to 'crypto/evp/evp_enc.c')
-rw-r--r-- | crypto/evp/evp_enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |