diff options
-rw-r--r-- | src/regress/lib/libtls/tls/tlstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libtls/tls/tlstest.c b/src/regress/lib/libtls/tls/tlstest.c index da94edafbb..9397cff256 100644 --- a/src/regress/lib/libtls/tls/tlstest.c +++ b/src/regress/lib/libtls/tls/tlstest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tlstest.c,v 1.1 2017/01/12 15:50:16 jsing Exp $ */ | 1 | /* $OpenBSD: tlstest.c,v 1.2 2017/01/17 13:19:36 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -287,7 +287,7 @@ main(int argc, char **argv) | |||
287 | if ((client_cfg = tls_config_new()) == NULL) | 287 | if ((client_cfg = tls_config_new()) == NULL) |
288 | errx(1, "failed to create tls client config"); | 288 | errx(1, "failed to create tls client config"); |
289 | tls_config_insecure_noverifyname(client_cfg); | 289 | tls_config_insecure_noverifyname(client_cfg); |
290 | if (tls_config_set_ca_file(client_cfg, argv[3])) | 290 | if (tls_config_set_ca_file(client_cfg, argv[3]) == -1) |
291 | errx(1, "failed to set ca: %s", tls_config_error(client_cfg)); | 291 | errx(1, "failed to set ca: %s", tls_config_error(client_cfg)); |
292 | 292 | ||
293 | if ((server = tls_server()) == NULL) | 293 | if ((server = tls_server()) == NULL) |