summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/evp/bio_b64.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-07-14 09:03:36 -0400
committerPeter Jones <pjones@redhat.com>2014-07-14 09:03:36 -0400
commitf9368474dd80b630adf745314b0336c16a35b0ad (patch)
treeb82d269a6f732af91e6b599003888d8b10a13bf2 /Cryptlib/OpenSSL/crypto/evp/bio_b64.c
parent875eb1b9d501d853b2c44f86a32a51b59f85eef9 (diff)
downloadefi-boot-shim-f9368474dd80b630adf745314b0336c16a35b0ad.tar.gz
efi-boot-shim-f9368474dd80b630adf745314b0336c16a35b0ad.zip
Update openssl to 0.9.8za
Also update to Tiano Cryptlib r15638
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/evp/bio_b64.c')
-rwxr-xr-xCryptlib/OpenSSL/crypto/evp/bio_b64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cryptlib/OpenSSL/crypto/evp/bio_b64.c b/Cryptlib/OpenSSL/crypto/evp/bio_b64.c
index 72a2a672..16863fe2 100755
--- a/Cryptlib/OpenSSL/crypto/evp/bio_b64.c
+++ b/Cryptlib/OpenSSL/crypto/evp/bio_b64.c
@@ -226,6 +226,7 @@ static int b64_read(BIO *b, char *out, int outl)
else if (ctx->start)
{
q=p=(unsigned char *)ctx->tmp;
+ num = 0;
for (j=0; j<i; j++)
{
if (*(q++) != '\n') continue;
@@ -264,7 +265,7 @@ static int b64_read(BIO *b, char *out, int outl)
}
/* 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
* reading until a new line. */