aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509/by_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/by_file.c')
-rw-r--r--crypto/x509/by_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c
index 78d7fbdf4488..244512c9352b 100644
--- a/crypto/x509/by_file.c
+++ b/crypto/x509/by_file.c
@@ -46,7 +46,7 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp,
switch (cmd) {
case X509_L_FILE_LOAD:
if (argl == X509_FILETYPE_DEFAULT) {
- file = getenv(X509_get_default_cert_file_env());
+ file = ossl_safe_getenv(X509_get_default_cert_file_env());
if (file)
ok = (X509_load_cert_crl_file(ctx, file,
X509_FILETYPE_PEM) != 0);