From ca98cbb7c336fac18fa8a53f4f555ccf440e5838 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 4 Jul 2020 09:07:02 +0000 Subject: Add a missing circular_init() call in the TLS ordering test. This makes the regress work correctly again - this was previously masked by the fact that tls_close() (and hence SSL_shutdown()) was draining the circular buffer, whereas now we're leaving data behind from a previous test, resulting in the ordering test failing. --- src/regress/lib/libtls/tls/tlstest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libtls/tls/tlstest.c b/src/regress/lib/libtls/tls/tlstest.c index c386e91610..047f9054f8 100644 --- a/src/regress/lib/libtls/tls/tlstest.c +++ b/src/regress/lib/libtls/tls/tlstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlstest.c,v 1.11 2020/05/13 17:57:27 jsing Exp $ */ +/* $OpenBSD: tlstest.c,v 1.12 2020/07/04 09:07:02 jsing Exp $ */ /* * Copyright (c) 2017 Joel Sing * @@ -438,6 +438,8 @@ do_tls_ordering_tests(void) goto done; } + circular_init(); + if (tls_accept_cbs(server, &server_cctx, server_read, server_write, NULL) == -1) errx(1, "failed to accept: %s", tls_error(server)); -- cgit v1.2.3-55-g6feb