aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-08 20:33:42 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-08 20:33:42 +0200
commitba659a99e13db27b3cb10691a1c41863733bc93f (patch)
tree4b5d36c3a96d1f1c03eb36931d2d07ddc8766436
parentad094ebb4b54a48a2f475a9c845da1bfc9592912 (diff)
downloadjson-rpc-shell-ba659a99e13db27b3cb10691a1c41863733bc93f.tar.gz
json-rpc-shell-ba659a99e13db27b3cb10691a1c41863733bc93f.tar.xz
json-rpc-shell-ba659a99e13db27b3cb10691a1c41863733bc93f.zip
Fix an embarrasing logic error
-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");
}
}