file = getenv("OPENSSL_CONF");
if (file)
return BUF_strdup(file);
- asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area());
+ if (asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area()) == -1)
+ return (NULL);
return file;
}
const char *t = X509_get_default_cert_area();
char *p;
- asprintf(&p, "%s/openssl.cnf", t);
+ if (asprintf(&p, "%s/openssl.cnf", t) == -1)
+ return NULL;
return p;
}
file = getenv("OPENSSL_CONF");
if (file)
return BUF_strdup(file);
- asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area());
+ if (asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area()) == -1)
+ return (NULL);
return file;
}