From ba659a99e13db27b3cb10691a1c41863733bc93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 8 Apr 2015 20:33:42 +0200 Subject: [PATCH] Fix an embarrasing logic error --- json-rpc-shell.c | 4 ++-- 1 file 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"); } }