提交 6ca48799 编写于 作者: D Dr. Stephen Henson

Stop spurious "unable to load config info" errors in req
上级 cf3a5ceb
......@@ -274,7 +274,12 @@ int main(int Argc, char *Argv[])
config=NCONF_new(NULL);
i=NCONF_load(config,p,&errline);
if (i == 0) ERR_clear_error();
if (i == 0)
{
NCONF_free(config);
config = NULL;
ERR_clear_error();
}
prog=prog_init();
......
......@@ -479,7 +479,7 @@ bad:
req_conf=config;
BIO_printf(bio_err,"Using configuration from %s\n",
default_config_file);
if (i == 0)
if (req_conf == NULL)
{
BIO_printf(bio_err,"Unable to load config info\n");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册