From 105c69b5d010aec960fdbf571dd0598e0436e293 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 20 Nov 2021 16:36:55 +0000 Subject: Switch to BIO_up_ref() instead of adjusting references manually. --- src/regress/lib/libssl/tlslegacy/tlslegacytest.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/regress/lib/libssl/tlslegacy/tlslegacytest.c') diff --git a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c index 58e452e911..17e19448d8 100644 --- a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c +++ b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlslegacytest.c,v 1.4 2021/08/30 17:34:02 tb Exp $ */ +/* $OpenBSD: tlslegacytest.c,v 1.5 2021/11/20 16:36:55 tb Exp $ */ /* * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing * @@ -589,9 +589,8 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct) goto failure; } - rbio->references = 2; - wbio->references = 2; - + BIO_up_ref(rbio); + BIO_up_ref(wbio); SSL_set_bio(ssl, rbio, wbio); if (SSL_connect(ssl) == 1) { @@ -611,9 +610,6 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct) SSL_CTX_free(ssl_ctx); SSL_free(ssl); - rbio->references = 1; - wbio->references = 1; - BIO_free(rbio); BIO_free(wbio); -- cgit v1.2.3-55-g6feb