From c843e6de91e167d11d837ed3bd627aaa4c8e04a7 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 17 Jan 2017 13:19:37 +0000 Subject: Correctly tls_config_set_ca_file() return value (no effective change). Spotted by inoguchi@ --- regress/lib/libtls/tls/tlstest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/lib') 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 * @@ -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) -- cgit v1.2.3