From: Neel Goyal Date: Fri, 6 Apr 2018 12:32:35 +0000 (-0400) Subject: Set biom->type in BIO_METH_new X-Git-Tag: OpenSSL_1_1_0i~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bf4b86518297b47af9b160f063e09832c406b51;p=openssl Set biom->type in BIO_METH_new Reviewed-by: Paul Dale Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5812) --- diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c index 1e785d348f..d1f3815f27 100644 --- a/crypto/bio/bio_meth.c +++ b/crypto/bio/bio_meth.c @@ -43,6 +43,7 @@ BIO_METHOD *BIO_meth_new(int type, const char *name) BIOerr(BIO_F_BIO_METH_NEW, ERR_R_MALLOC_FAILURE); return NULL; } + biom->type = type; return biom; }