From e501ef18aa9f692de97c6b92c6bfabf63c669322 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 30 Aug 2021 17:34:02 +0000 Subject: Revert accidental commit --- src/regress/lib/libssl/tlslegacy/tlslegacytest.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 4591f6267c..58e452e911 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.3 2021/08/30 17:28:47 tb Exp $ */ +/* $OpenBSD: tlslegacytest.c,v 1.4 2021/08/30 17:34:02 tb Exp $ */ /* * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing * @@ -589,9 +589,10 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct) goto failure; } + rbio->references = 2; + wbio->references = 2; + SSL_set_bio(ssl, rbio, wbio); - rbio = NULL; - wbio = NULL; if (SSL_connect(ssl) == 1) { fprintf(stderr, "SSL_connect() succeeded\n"); @@ -610,6 +611,9 @@ 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