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:45 +0000 (17:45 +0100)
commitcd1caea433d44e63af517a8149eee6ed9f45f681
tree85743c10203c7deefd01ed31e883d217f5a5bbb6
parent96de98ba34a6c9aa3ccd5d2555cb16ce3e16a7cc
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)

(cherry picked from commit 7f55808fe723c146428415a470ed42331548007b)
crypto/bio/bio_lib.c