Fix an embarrasing logic error

This commit is contained in:
Přemysl Eric Janouch 2015-04-08 20:33:42 +02:00
parent ad094ebb4b
commit ba659a99e1

View File

@ -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_file = str_map_find (&ctx->config, "ca_file");
const char *ca_path = str_map_find (&ctx->config, "ca_path"); const char *ca_path = str_map_find (&ctx->config, "ca_path");
if ((ca_file && !curl_easy_setopt (curl, CURLOPT_CAINFO, ca_file)) if ((ca_file && curl_easy_setopt (curl, CURLOPT_CAINFO, ca_file))
|| (ca_path && !curl_easy_setopt (curl, CURLOPT_CAPATH, ca_path))) || (ca_path && curl_easy_setopt (curl, CURLOPT_CAPATH, ca_path)))
exit_fatal ("cURL setup failed"); exit_fatal ("cURL setup failed");
} }
} }