Initialize num properly.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 6 May 2014 13:07:37 +0000 (14:07 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 6 May 2014 13:07:37 +0000 (14:07 +0100)
PR#3289
PR#3345

crypto/evp/bio_b64.c

index ac6d441..16863fe 100644 (file)
@@ -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;