summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/tlslegacy
diff options
context:
space:
mode:
authortb <>2021-08-30 17:34:02 +0000
committertb <>2021-08-30 17:34:02 +0000
commit769a0eb675541b26164c2614afd360bc503be92a (patch)
tree8596430725e7f227767868236eeee57380521082 /src/regress/lib/libssl/tlslegacy
parentb05142e1ba115406b0f261b5374facddce7e25b8 (diff)
downloadopenbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.gz
openbsd-769a0eb675541b26164c2614afd360bc503be92a.tar.bz2
openbsd-769a0eb675541b26164c2614afd360bc503be92a.zip
Revert accidental commit
Diffstat (limited to 'src/regress/lib/libssl/tlslegacy')
-rw-r--r--src/regress/lib/libssl/tlslegacy/tlslegacytest.c10
1 files changed, 7 insertions, 3 deletions
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 @@
1/* $OpenBSD: tlslegacytest.c,v 1.3 2021/08/30 17:28:47 tb Exp $ */ 1/* $OpenBSD: tlslegacytest.c,v 1.4 2021/08/30 17:34:02 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,9 +589,10 @@ 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
592 SSL_set_bio(ssl, rbio, wbio); 595 SSL_set_bio(ssl, rbio, wbio);
593 rbio = NULL;
594 wbio = NULL;
595 596
596 if (SSL_connect(ssl) == 1) { 597 if (SSL_connect(ssl) == 1) {
597 fprintf(stderr, "SSL_connect() succeeded\n"); 598 fprintf(stderr, "SSL_connect() succeeded\n");
@@ -610,6 +611,9 @@ tlslegacy_client_test(int testno, struct tlslegacy_client_test *tct)
610 SSL_CTX_free(ssl_ctx); 611 SSL_CTX_free(ssl_ctx);
611 SSL_free(ssl); 612 SSL_free(ssl);
612 613
614 rbio->references = 1;
615 wbio->references = 1;
616
613 BIO_free(rbio); 617 BIO_free(rbio);
614 BIO_free(wbio); 618 BIO_free(wbio);
615 619