From d6ec6716461da86cc5cbfade57b3feecc377e0c8 Mon Sep 17 00:00:00 2001 From: Arzhan Kinzhalin Date: Thu, 5 Oct 2017 21:17:56 +0000 Subject: [PATCH] Fix incorrect cycle. Remove the increment left-over from changing from while to for. The issue does not impact happy scenario. However, when the fallback needs to be used (e.g. when the default trust store is removed or in a container where it's not generated), swupd fails to connect because it never gets to try the fallback CApath: if there's just one fallback, it the cycle will end before it is tried. --- src/curl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/curl.c b/src/curl.c index 0fdeed16..cb4124a4 100644 --- a/src/curl.c +++ b/src/curl.c @@ -168,7 +168,6 @@ int swupd_curl_check_network(void) swupd_curl_test_resume(); goto cleanup; case CURLE_SSL_CACERT: - i++; break; default: fprintf(stderr, "ERROR: %d\n", curl_ret);