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:
Arzhan Kinzhalin
2017-10-05 14:48:31 -07:00
committed by Matthew Johnson
parent 4d4acf4af6
commit d6ec671646
-1
View File
@@ -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);