Skip to content

Commit

Permalink
src/ssl_load.c: in LoadSystemCaCertsWindows(), fix flub introduced in 8…
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Apr 17, 2024
1 parent 03ed52b commit 6e3a9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6e3a9d5

Please sign in to comment.