Really undo the base64 change so that make test survives
authorBodo Möller <bodo@openssl.org>
Wed, 18 Aug 1999 16:42:27 +0000 (16:42 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 18 Aug 1999 16:42:27 +0000 (16:42 +0000)
crypto/evp/encode.c

index c532a18..0152624 100644 (file)
@@ -291,7 +291,7 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
 
                /* If we are at the end of input and it looks like a
                 * line, process it. */
-               if (((i+1) == inl) && (eof))
+               if (((i+1) == inl) && (((n&3) == 0) || eof))
                        v=B64_EOF;
 
                if ((v == B64_EOF) || (n >= 64))