aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-rpc-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index bbff128..9d542a2 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1561,8 +1561,8 @@ backend_curl_init (struct app_context *ctx,
{
const char *ca_file = str_map_find (&ctx->config, "ca_file");
const char *ca_path = str_map_find (&ctx->config, "ca_path");
- if ((ca_file && !curl_easy_setopt (curl, CURLOPT_CAINFO, ca_file))
- || (ca_path && !curl_easy_setopt (curl, CURLOPT_CAPATH, ca_path)))
+ if ((ca_file && curl_easy_setopt (curl, CURLOPT_CAINFO, ca_file))
+ || (ca_path && curl_easy_setopt (curl, CURLOPT_CAPATH, ca_path)))
exit_fatal ("cURL setup failed");
}
}