diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-05-06 21:50:41 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-05-06 21:50:41 +0000 |
commit | 893c1f45e60a52584606bb67d60535537e74767a (patch) | |
tree | 226d847de9dc0bb7d6e53dc430e10c32ef3665f5 /regress/lib | |
parent | e19f038f636c81f454e8b44a16a856538a25efdf (diff) |
Free tls_configs earlier now that we have refcounting.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libtls/tls/tlstest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libtls/tls/tlstest.c b/regress/lib/libtls/tls/tlstest.c index 9397cff2564..b1ddbc85ac5 100644 --- a/regress/lib/libtls/tls/tlstest.c +++ b/regress/lib/libtls/tls/tlstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlstest.c,v 1.2 2017/01/17 13:19:36 jsing Exp $ */ +/* $OpenBSD: tlstest.c,v 1.3 2017/05/06 21:50:40 jsing Exp $ */ /* * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> * @@ -323,13 +323,13 @@ main(int argc, char **argv) if (tls_configure(server, server_cfg) == -1) errx(1, "failed to configure server: %s", tls_error(server)); + tls_config_free(client_cfg); + tls_config_free(server_cfg); + failure |= test_tls_socket(client, server); tls_free(client); tls_free(server); - tls_config_free(client_cfg); - tls_config_free(server_cfg); - return (failure); } |