diff options
author | Richard Levitte <levitte@openssl.org> | 2005-06-20 22:11:14 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2005-06-20 22:11:14 +0000 |
commit | 0fc6b2c9e28fb573b670eb205e2ddda74387b5aa (patch) | |
tree | 9fecd9748b5d61a0f20f10f7e7de4d985c19944a /crypto/evp/encode.c | |
parent | 7a5ad5d5a103ca3a0c89643275e7e148fba13e43 (diff) | |
download | openssl-0fc6b2c9e28fb573b670eb205e2ddda74387b5aa.tar.gz |
Do no try to pretend we're at the end of anything unless we're at the end
of a 4-character block.
Diffstat (limited to 'crypto/evp/encode.c')
-rw-r--r-- | crypto/evp/encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 2d738f4b01..5921f0d710 100644 --- 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 |