summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-03-06 21:26:46 +0100
committerRich Salz <rsalz@openssl.org>2016-05-31 16:58:22 -0400
commitf792c663048f19347a1bb72125e535e4fb2ecf39 (patch)
tree25daffc37eefdaa14ddf72ab705421bba7441d74 /crypto/bio
parentfd785ca8921af85b00755fd1ce3cfe460edb2f95 (diff)
Fix some missing inits
Backport of 8e89e85f556f549f05d3b49f5408a217ac5e3700 From PR #1019 / #997 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1019)
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bss_bio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c
index 202cc3615d..3dd8187729 100644
--- a/crypto/bio/bss_bio.c
+++ b/crypto/bio/bss_bio.c
@@ -149,9 +149,13 @@ static int bio_new(BIO *bio)
return 0;
b->peer = NULL;
+ b->closed = 0;
+ b->len = 0;
+ b->offset = 0;
/* enough for one TLS record (just a default) */
b->size = 17 * 1024;
b->buf = NULL;
+ b->request = 0;
bio->ptr = b;
return 1;