diff options
author | Bodo Möller <bodo@openssl.org> | 2000-12-15 16:59:49 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-12-15 16:59:49 +0000 |
commit | 2c0d10123eac1117d64a8476bbc1f730439403ab (patch) | |
tree | 3196fcc55a6cb92193953d55a890314bde77a217 /apps/apps.c | |
parent | 3ac82faae5eb02140f347610be0726f549a0aa0a (diff) | |
download | openssl-2c0d10123eac1117d64a8476bbc1f730439403ab.tar.gz |
If CONF_get_string returns NULL and we want to tolerate this
(e.g., use a default), we have to call ERR_clear_error().
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index a04f871d0a..ca3f557ca2 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -442,7 +442,11 @@ int add_oid_section(BIO *err, LHASH *conf) STACK_OF(CONF_VALUE) *sktmp; CONF_VALUE *cnf; int i; - if(!(p=CONF_get_string(conf,NULL,"oid_section"))) return 1; + if(!(p=CONF_get_string(conf,NULL,"oid_section"))) + { + ERR_clear_error(); + return 1; + } if(!(sktmp = CONF_get_section(conf, p))) { BIO_printf(err, "problem loading oid section %s\n", p); return 0; |