mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 15:29:29 +00:00
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.
This commit is contained in:
committed by
Matthew Johnson
parent
4d4acf4af6
commit
d6ec671646
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user