summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-10-21 01:05:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-10-21 01:05:53 +0000
commit6ca487992bc63d45f9780c6b83eecf025830e34b (patch)
tree9899405db9c921825506d23b246b67337e44f848 /apps
parentcf3a5cebd7d1a2094da18930acc3c926d7094ecd (diff)
Stop spurious "unable to load config info" errors in req
Diffstat (limited to 'apps')
-rw-r--r--apps/openssl.c7
-rw-r--r--apps/req.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index 7edd9e3132..a344011778 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -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();
diff --git a/apps/req.c b/apps/req.c
index 9611431fe7..54ddfab0f4 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -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");
}