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
1 changed files with 2 additions and 2 deletions

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_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");
}
}