diff options
author | 2020-07-04 09:07:02 +0000 | |
---|---|---|
committer | 2020-07-04 09:07:02 +0000 | |
commit | cfee7a70c553d1bffa342b332031217125edd76e (patch) | |
tree | 738d964877f0b9c2bda1e8e922fadaae51b1ce12 /regress/lib | |
parent | Remove no-op cn30xxgmx_reset_board(). (diff) | |
download | wireguard-openbsd-cfee7a70c553d1bffa342b332031217125edd76e.tar.xz wireguard-openbsd-cfee7a70c553d1bffa342b332031217125edd76e.zip |
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.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libtls/tls/tlstest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libtls/tls/tlstest.c b/regress/lib/libtls/tls/tlstest.c index c386e91610f..047f9054f80 100644 --- a/regress/lib/libtls/tls/tlstest.c +++ b/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 <jsing@openbsd.org> * @@ -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)); |