aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/evp_enc.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-07-27 02:24:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-07-27 02:24:47 +0000
commitdc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb (patch)
treebad0298cac283fee89284626c475cd8413f48252 /crypto/evp/evp_enc.c
parent1241126adf6c451d6a7115ffdc68fa64c4d55593 (diff)
downloadopenssl-dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb.zip
openssl-dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb.tar.gz
openssl-dc706cd35fa8e3a7c1e634e2e90f6b01b967d4bb.tar.bz2
Make sure *outl is always initialized in EVP_EncryptUpdate().
Diffstat (limited to 'crypto/evp/evp_enc.c')
-rw-r--r--crypto/evp/evp_enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c
index 9a7a553..87e71e3 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)