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:
d01f1d8
)
Do no try to pretend we're at the end of anything unless we're at the end
author
Richard Levitte
<levitte@openssl.org>
Mon, 20 Jun 2005 22:11:21 +0000
(22:11 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 20 Jun 2005 22:11:21 +0000
(22:11 +0000)
of a 4-character block.
crypto/evp/encode.c
patch
|
blob
|
history
diff --git
a/crypto/evp/encode.c
b/crypto/evp/encode.c
index 08209357ce0a3230b5aad4b38ee11be22c1e4ffb..33e540087d551fa5f0eeee1123b93c7f9a35a89c 100644
(file)
--- a/
crypto/evp/encode.c
+++ b/
crypto/evp/encode.c
@@
-313,7
+313,7
@@
int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
/* There will never be more than two '=' */
}
- if ((v == B64_EOF) || (n >= 64))
+ if ((v == B64_EOF
&& (n&3) == 0
) || (n >= 64))
{
/* This is needed to work correctly on 64 byte input
* lines. We process the line and then need to