summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-12-29 22:49:23 +0000
committertb <>2021-12-29 22:49:23 +0000
commit371d53f923421e63de6b86871958992aed896bbd (patch)
tree1a6b4a43072c0b9c7ce89ccff7b8c55a3a1fa475
parent04571420cb84bd74da45af82a2993186fce34938 (diff)
downloadopenbsd-371d53f923421e63de6b86871958992aed896bbd.tar.gz
openbsd-371d53f923421e63de6b86871958992aed896bbd.tar.bz2
openbsd-371d53f923421e63de6b86871958992aed896bbd.zip
Plug memleak
CID 345160
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 9bd438f24b..91bf69c6a5 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.53 2021/11/02 14:39:09 jsing Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.54 2021/12/29 22:49:23 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2069,7 +2069,7 @@ test_tlsext_sessionticket_client(void)
2069 /* Test disabling tickets. */ 2069 /* Test disabling tickets. */
2070 if ((SSL_set_options(ssl, SSL_OP_NO_TICKET) & SSL_OP_NO_TICKET) == 0) { 2070 if ((SSL_set_options(ssl, SSL_OP_NO_TICKET) & SSL_OP_NO_TICKET) == 0) {
2071 FAIL("Cannot disable tickets in the TLS connection\n"); 2071 FAIL("Cannot disable tickets in the TLS connection\n");
2072 return 0; 2072 goto err;
2073 } 2073 }
2074 if (tlsext_sessionticket_client_needs(ssl, SSL_TLSEXT_MSG_CH)) { 2074 if (tlsext_sessionticket_client_needs(ssl, SSL_TLSEXT_MSG_CH)) {
2075 FAIL("client should not need SessionTicket if it was disabled\n"); 2075 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)
3670 int failure = 0; 3670 int failure = 0;
3671 int is_ip; 3671 int is_ip;
3672 CBS cbs; 3672 CBS cbs;
3673 3673
3674 CBS_init(&cbs, tst->hostname, strlen(tst->hostname)); 3674 CBS_init(&cbs, tst->hostname, strlen(tst->hostname));
3675 if (tlsext_sni_is_valid_hostname(&cbs, &is_ip) != tst->valid) { 3675 if (tlsext_sni_is_valid_hostname(&cbs, &is_ip) != tst->valid) {
3676 if (tst->valid) { 3676 if (tst->valid) {