]> granicus.if.org Git - openssl/commitdiff
Set biom->type in BIO_METH_new
authorNeel Goyal <ngoyal@gmail.com>
Fri, 6 Apr 2018 12:32:35 +0000 (08:32 -0400)
committerRich Salz <rsalz@openssl.org>
Fri, 6 Apr 2018 12:38:10 +0000 (08:38 -0400)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5812)

crypto/bio/bio_meth.c

index 1e785d348f116b4300281a21668210917dbd4751..d1f3815f27740e28716b6353ffd376ba89b46a87 100644 (file)
@@ -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;
 }