Commit bfc3424d authored by Eric Young's avatar Eric Young Committed by Dr. Stephen Henson
Browse files

Fix base64 decoding bug.

A short PEM encoded sequence if passed to the BIO, and the file
had 2 \n following would fail.

PR#3289
(cherry picked from commit 10378fb5)
parent 1c659368
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -264,7 +264,7 @@ static int b64_read(BIO *b, char *out, int outl)
				}
				}


			/* we fell off the end without starting */
			/* we fell off the end without starting */
			if (j == i)
			if ((j == i) && (num == 0))
				{
				{
				/* Is this is one long chunk?, if so, keep on
				/* Is this is one long chunk?, if so, keep on
				 * reading until a new line. */
				 * reading until a new line. */