summaryrefslogtreecommitdiff
path: root/regress/lib/libssl
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-12-29 22:49:24 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-12-29 22:49:24 +0000
commit25c96c96823579b766e978383ac37e649858c953 (patch)
tree86b9953142f7025c7250c0c48673aa802214e522 /regress/lib/libssl
parent941b0ced4a085dbbbcbfb7c4777ef8b7e53fe29e (diff)
Plug memleak
CID 345160
Diffstat (limited to 'regress/lib/libssl')
-rw-r--r--regress/lib/libssl/tlsext/tlsexttest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c
index 9bd438f24ba..91bf69c6a53 100644
--- a/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tlsexttest.c,v 1.53 2021/11/02 14:39:09 jsing Exp $ */
+/* $OpenBSD: tlsexttest.c,v 1.54 2021/12/29 22:49:23 tb Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2069,7 +2069,7 @@ test_tlsext_sessionticket_client(void)
/* Test disabling tickets. */
if ((SSL_set_options(ssl, SSL_OP_NO_TICKET) & SSL_OP_NO_TICKET) == 0) {
FAIL("Cannot disable tickets in the TLS connection\n");
- return 0;
+ goto err;
}
if (tlsext_sessionticket_client_needs(ssl, SSL_TLSEXT_MSG_CH)) {
FAIL("client should not need SessionTicket if it was disabled\n");
@@ -3670,7 +3670,7 @@ test_tlsext_is_valid_hostname(const struct tls_sni_test *tst)
int failure = 0;
int is_ip;
CBS cbs;
-
+
CBS_init(&cbs, tst->hostname, strlen(tst->hostname));
if (tlsext_sni_is_valid_hostname(&cbs, &is_ip) != tst->valid) {
if (tst->valid) {