From 0116eae43ec2c16c21e1dd4ef9117e5fe91ab7c2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 20 Jun 2005 22:11:21 +0000 Subject: [PATCH] Do no try to pretend we're at the end of anything unless we're at the end of a 4-character block. --- crypto/evp/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 08209357ce..33e540087d 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 -- 2.25.1