Initialize num properly.

PR#3289
PR#3345
(cherry picked from commit 3ba1e406c2)
This commit is contained in:
Dr. Stephen Henson 2014-05-06 14:07:37 +01:00
parent 1047b8c84d
commit 7169e56d6b

View 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;