diff options
| author | miod <> | 2014-07-11 12:04:46 +0000 |
|---|---|---|
| committer | miod <> | 2014-07-11 12:04:46 +0000 |
| commit | 45a433e7f12c0e4b389578af45ad67ab69bf98e4 (patch) | |
| tree | 130c8886c7bcebe9af1493c76e14861e51678226 | |
| parent | db4ec3f784e21615be107130f5baebb38f197560 (diff) | |
| download | openbsd-45a433e7f12c0e4b389578af45ad67ab69bf98e4.tar.gz openbsd-45a433e7f12c0e4b389578af45ad67ab69bf98e4.tar.bz2 openbsd-45a433e7f12c0e4b389578af45ad67ab69bf98e4.zip | |
Missing initialization; OpenSSL PR#3289 and #3345 via OpenSSL trunk.
| -rw-r--r-- | src/lib/libcrypto/evp/bio_b64.c | 5 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/evp/bio_b64.c | 5 |
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; |
