diff options
author | 2017-01-17 13:19:36 +0000 | |
---|---|---|
committer | 2017-01-17 13:19:36 +0000 | |
commit | d0118f4622bd0e4420bb937580c9064192a43a08 (patch) | |
tree | a79650879d839b3b76ac210a879982b5cd26105b | |
parent | Fix a panic when set-field with VLAN is set, but no VLANs were (diff) | |
download | wireguard-openbsd-d0118f4622bd0e4420bb937580c9064192a43a08.tar.xz wireguard-openbsd-d0118f4622bd0e4420bb937580c9064192a43a08.zip |
Correctly tls_config_set_ca_file() return value (no effective change).
Spotted by inoguchi@
-rw-r--r-- | regress/lib/libtls/tls/tlstest.c | 4 |
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) |