Skip to content

Commit

Permalink
Dont use specific free function
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed Dec 3, 2024
1 parent 20e8ece commit c5accec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/x509_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,15 +1194,15 @@ void wolfSSL_X509_STORE_free(WOLFSSL_X509_STORE* store)
}
#if defined(OPENSSL_EXTRA)
if (store->certs != NULL) {
wolfSSL_sk_X509_pop_free(store->certs, wolfSSL_X509_free);
wolfSSL_sk_X509_pop_free(store->certs, NULL);
store->certs = NULL;
}
if (store->owned != NULL) {
wolfSSL_sk_X509_pop_free(store->owned, wolfSSL_X509_free);
wolfSSL_sk_X509_pop_free(store->owned, NULL);
store->owned = NULL;
}
if (store->trusted != NULL) {
wolfSSL_sk_X509_pop_free(store->trusted, wolfSSL_X509_free);
wolfSSL_sk_X509_pop_free(store->trusted, NULL);
store->trusted = NULL;
}
#endif
Expand Down

0 comments on commit c5accec

Please sign in to comment.