summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-01-14 09:10:11 +0000
committertb <>2022-01-14 09:10:11 +0000
commit92e24deafd830acc2ff30d7a707ad2be74d523b4 (patch)
tree09e5bd9ea1f21c78b7f248d9f2e64acdf0f91cc2
parent569ac6ae47542ab678a23a440d659ae25196fdc7 (diff)
downloadopenbsd-92e24deafd830acc2ff30d7a707ad2be74d523b4.tar.gz
openbsd-92e24deafd830acc2ff30d7a707ad2be74d523b4.tar.bz2
openbsd-92e24deafd830acc2ff30d7a707ad2be74d523b4.zip
Use BIO_next/BIO_set_next in ssl_lib.c
Trivial conversion to cope with opaque BIO.
-rw-r--r--src/lib/libssl/ssl_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index c66437e77d..91080e9360 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.286 2022/01/11 18:43:00 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.287 2022/01/14 09:10:11 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -596,8 +596,8 @@ SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio)
596 /* If the output buffering BIO is still in place, remove it */ 596 /* If the output buffering BIO is still in place, remove it */
597 if (s->bbio != NULL) { 597 if (s->bbio != NULL) {
598 if (s->wbio == s->bbio) { 598 if (s->wbio == s->bbio) {
599 s->wbio = s->wbio->next_bio; 599 s->wbio = BIO_next(s->wbio);
600 s->bbio->next_bio = NULL; 600 BIO_set_next(s->bbio, NULL);
601 } 601 }
602 } 602 }
603 603