src/ssl_load.c: in LoadSystemCaCertsWindows(), fix flub introduced in 8e9810e87e.

This commit is contained in:
Daniel Pouzzner
2024-04-17 13:24:26 -05:00
parent 03ed52bd81
commit 6e3a9d5447

View File

@@ -2872,7 +2872,7 @@ static int LoadSystemCaCertsWindows(WOLFSSL_CTX* ctx, byte* loaded)
ret = 0;
}
for (i = 0; (ret == 0) && (i < sizeof(storeNames)/sizeof(*storeNames));
for (i = 0; (ret == 1) && (i < sizeof(storeNames)/sizeof(*storeNames));
++i) {
handle = CertOpenSystemStoreA(hProv, storeNames[i]);
if (handle != NULL) {