Coverity fix in some crypto/asn1 code
[openssl.git] / crypto / x509 / by_file.c
index 78d7fbdf4488e59ab5074404f7f14f75a5d8573d..244512c9352b3a1543f8ea3acddf269ee2462b81 100644 (file)
@@ -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);