Skip to content

Commit

Permalink
Merge pull request #2 from createyourpersonalaccount/fix-typo-cadirs
Browse files Browse the repository at this point in the history
fix variable name typo
  • Loading branch information
bradh352 authored Jan 27, 2025
2 parents b38a977 + 82bf82d commit 221e340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/crypto/ares_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ static ares_status_t ares_ossl_load_caroots(SSL_CTX *ctx, OSSL_LIB_CTX *libctx)
return ARES_ENOMEM;
}

for (i = 0; i < cadirs[i] != NULL; i++) {
if (file_exists(cadires[i], ARES_TRUE) &&
for (i = 0; cadirs[i] != NULL; i++) {
if (file_exists(cadirs[i], ARES_TRUE) &&
X509_STORE_load_path(x509_store, cadirs[i]) == 1) {
goto done;
}
}

for (i = 0; i < cafile_paths[i] != NULL; i++) {
for (i = 0; cafile_paths[i] != NULL; i++) {
if (file_exists(cafile_paths[i], ARES_FALSE) &&
X509_STORE_load_file_ex(x509_store, cafile_paths[i], libctx, NULL) ==
1) {
Expand Down

0 comments on commit 221e340

Please sign in to comment.