summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2017-01-17 13:19:37 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2017-01-17 13:19:37 +0000
commitc843e6de91e167d11d837ed3bd627aaa4c8e04a7 (patch)
treea2c0e4e2f3f282714bb8a9467bcaa95e5b09f390 /regress
parentd2dad7bc530f8cdb4f27a3f590c7fb2631b8431d (diff)
Correctly tls_config_set_ca_file() return value (no effective change).
Spotted by inoguchi@
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libtls/tls/tlstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libtls/tls/tlstest.c b/regress/lib/libtls/tls/tlstest.c
index da94edafbb9..9397cff2564 100644
--- a/regress/lib/libtls/tls/tlstest.c
+++ b/regress/lib/libtls/tls/tlstest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tlstest.c,v 1.1 2017/01/12 15:50:16 jsing Exp $ */
+/* $OpenBSD: tlstest.c,v 1.2 2017/01/17 13:19:36 jsing Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
*
@@ -287,7 +287,7 @@ main(int argc, char **argv)
if ((client_cfg = tls_config_new()) == NULL)
errx(1, "failed to create tls client config");
tls_config_insecure_noverifyname(client_cfg);
- if (tls_config_set_ca_file(client_cfg, argv[3]))
+ if (tls_config_set_ca_file(client_cfg, argv[3]) == -1)
errx(1, "failed to set ca: %s", tls_config_error(client_cfg));
if ((server = tls_server()) == NULL)