projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1241126
)
Make sure *outl is always initialized in EVP_EncryptUpdate().
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 27 Jul 2001 02:24:47 +0000
(
02:24
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 27 Jul 2001 02:24:47 +0000
(
02:24
+0000)
crypto/evp/evp_enc.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_enc.c
b/crypto/evp/evp_enc.c
index 9a7a553bef292ebfc368da55918639c064294ee0..87e71e3c7feb05ced52078ccf5fbb46f3e5c44d5 100644
(file)
--- 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)