Skip to content

Commit 6e3a9d5

Browse files
committed
src/ssl_load.c: in LoadSystemCaCertsWindows(), fix flub introduced in 8e9810e.
1 parent 03ed52b commit 6e3a9d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ static int LoadSystemCaCertsWindows(WOLFSSL_CTX* ctx, byte* loaded)
28722872
ret = 0;
28732873
}
28742874

2875-
for (i = 0; (ret == 0) && (i < sizeof(storeNames)/sizeof(*storeNames));
2875+
for (i = 0; (ret == 1) && (i < sizeof(storeNames)/sizeof(*storeNames));
28762876
++i) {
28772877
handle = CertOpenSystemStoreA(hProv, storeNames[i]);
28782878
if (handle != NULL) {

0 commit comments

Comments
 (0)