BIO: at the end of BIO_new, declare the BIO inited if no create method present
authorRichard Levitte <levitte@openssl.org>
Wed, 31 Jan 2018 10:17:32 +0000 (11:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 31 Jan 2018 16:45:11 +0000 (17:45 +0100)
commit7f55808fe723c146428415a470ed42331548007b
tree09927a636bff9e39f4917fa5ae693753eb1e5fa7
parent2e230e8687486b71c113915b864d6b1f6d465ed1
BIO: at the end of BIO_new, declare the BIO inited if no create method present

Without this, every BIO implementation is forced to have a create
method, just to set bio->init = 1.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5223)
crypto/bio/bio_lib.c