summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/tlslegacy/tlslegacytest.c')
-rw-r--r--src/regress/lib/libssl/tlslegacy/tlslegacytest.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
index 70d89f8e75..4591f6267c 100644
--- a/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
+++ b/src/regress/lib/libssl/tlslegacy/tlslegacytest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlslegacytest.c,v 1.2 2020/10/07 17:39:43 tb Exp $ */ 1/* $OpenBSD: tlslegacytest.c,v 1.3 2021/08/30 17:28:47 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015, 2016, 2017, 2020 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -589,10 +589,9 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct)
589 goto failure; 589 goto failure;
590 } 590 }
591 591
592 rbio->references = 2;
593 wbio->references = 2;
594
595 SSL_set_bio(ssl, rbio, wbio); 592 SSL_set_bio(ssl, rbio, wbio);
593 rbio = NULL;
594 wbio = NULL;
596 595
597 if (SSL_connect(ssl) == 1) { 596 if (SSL_connect(ssl) == 1) {
598 fprintf(stderr, "SSL_connect() succeeded\n"); 597 fprintf(stderr, "SSL_connect() succeeded\n");
@@ -611,9 +610,6 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct)
611 SSL_CTX_free(ssl_ctx); 610 SSL_CTX_free(ssl_ctx);
612 SSL_free(ssl); 611 SSL_free(ssl);
613 612
614 rbio->references = 1;
615 wbio->references = 1;
616
617 BIO_free(rbio); 613 BIO_free(rbio);
618 BIO_free(wbio); 614 BIO_free(wbio);
619 615