From 8c09bc917a2411d180bd37e6b1a1b1bfdd572599 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 14 Jan 2022 09:10:11 +0000 Subject: [PATCH] Use BIO_next/BIO_set_next in ssl_lib.c Trivial conversion to cope with opaque BIO. --- lib/libssl/ssl_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index c66437e77db..91080e93608 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.286 2022/01/11 18:43:00 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.287 2022/01/14 09:10:11 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -596,8 +596,8 @@ SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio) /* If the output buffering BIO is still in place, remove it */ if (s->bbio != NULL) { if (s->wbio == s->bbio) { - s->wbio = s->wbio->next_bio; - s->bbio->next_bio = NULL; + s->wbio = BIO_next(s->wbio); + BIO_set_next(s->bbio, NULL); } } -- 2.20.1