--- crypto/evp/encode.c	Fri Aug 11 08:36:25 2000
+++ /home/paveltz/encode.c	Thu Apr 11 10:30:31 2002
@@ -277,6 +277,13 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx
 			eof++;
 			}
 
+		if (v == B64_CR)
+			{
+			ln = 0;
+			if (exp_nl)
+				continue;
+			}
+
 		/* eoln */
 		if (v == B64_EOLN)
 			{
