summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2014-07-11 12:04:46 +0000
committermiod <>2014-07-11 12:04:46 +0000
commitb53afc2ffda8c1c2f0cd88eebadb43457e4e2ad0 (patch)
tree130c8886c7bcebe9af1493c76e14861e51678226
parentb9382f4a833a37d39acc5c6f237e55302549d5c9 (diff)
downloadopenbsd-b53afc2ffda8c1c2f0cd88eebadb43457e4e2ad0.tar.gz
openbsd-b53afc2ffda8c1c2f0cd88eebadb43457e4e2ad0.tar.bz2
openbsd-b53afc2ffda8c1c2f0cd88eebadb43457e4e2ad0.zip
Missing initialization; OpenSSL PR#3289 and #3345 via OpenSSL trunk.
-rw-r--r--src/lib/libcrypto/evp/bio_b64.c5
-rw-r--r--src/lib/libssl/src/crypto/evp/bio_b64.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/bio_b64.c b/src/lib/libcrypto/evp/bio_b64.c
index 632d056168..53b8bcf615 100644
--- a/src/lib/libcrypto/evp/bio_b64.c
+++ b/src/lib/libcrypto/evp/bio_b64.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_b64.c,v 1.18 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: bio_b64.c,v 1.19 2014/07/11 12:04:46 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -224,7 +224,8 @@ b64_read(BIO *b, char *out, int outl)
224 /* ctx->start=1; */ 224 /* ctx->start=1; */
225 ctx->tmp_len = 0; 225 ctx->tmp_len = 0;
226 } else if (ctx->start) { 226 } else if (ctx->start) {
227 q = p=(unsigned char *)ctx->tmp; 227 q = p =(unsigned char *)ctx->tmp;
228 num = 0;
228 for (j = 0; j < i; j++) { 229 for (j = 0; j < i; j++) {
229 if (*(q++) != '\n') 230 if (*(q++) != '\n')
230 continue; 231 continue;
diff --git a/src/lib/libssl/src/crypto/evp/bio_b64.c b/src/lib/libssl/src/crypto/evp/bio_b64.c
index 632d056168..53b8bcf615 100644
--- a/src/lib/libssl/src/crypto/evp/bio_b64.c
+++ b/src/lib/libssl/src/crypto/evp/bio_b64.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_b64.c,v 1.18 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: bio_b64.c,v 1.19 2014/07/11 12:04:46 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -224,7 +224,8 @@ b64_read(BIO *b, char *out, int outl)
224 /* ctx->start=1; */ 224 /* ctx->start=1; */
225 ctx->tmp_len = 0; 225 ctx->tmp_len = 0;
226 } else if (ctx->start) { 226 } else if (ctx->start) {
227 q = p=(unsigned char *)ctx->tmp; 227 q = p =(unsigned char *)ctx->tmp;
228 num = 0;
228 for (j = 0; j < i; j++) { 229 for (j = 0; j < i; j++) {
229 if (*(q++) != '\n') 230 if (*(q++) != '\n')
230 continue; 231 continue;