diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-04-30 03:53:32 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-04-30 03:53:32 +0000 |
commit | 83c723d5f9c975faf01d5e93e06b41d87f909f1b (patch) | |
tree | d2bc18caa574ddf3525f9552a25fb3835acaf202 /regress/lib/libtls | |
parent | 544c66b58c47d72332fceed4fafda7c5ca99c9a4 (diff) |
Add missing tls_init() and tls_free() calls.
Diffstat (limited to 'regress/lib/libtls')
-rw-r--r-- | regress/lib/libtls/verify/verifytest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/lib/libtls/verify/verifytest.c b/regress/lib/libtls/verify/verifytest.c index ccf6930392b..b41b62fcfbf 100644 --- a/regress/lib/libtls/verify/verifytest.c +++ b/regress/lib/libtls/verify/verifytest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: verifytest.c,v 1.6 2017/04/10 17:12:30 jsing Exp $ */ +/* $OpenBSD: verifytest.c,v 1.7 2017/04/30 03:53:31 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -504,6 +504,7 @@ do_verify_test(int test_no, struct verify_test *vt) done: X509_free(cert); + tls_free(tls); return (failed); } @@ -514,6 +515,8 @@ main(int argc, char **argv) int failed = 0; size_t i; + tls_init(); + for (i = 0; i < N_VERIFY_TESTS; i++) failed += do_verify_test(i, &verify_tests[i]); |