diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-05-15 19:59:16 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2023-06-14 08:37:52 +0200 |
commit | c553c08232f7dc7eab0a4b9a739b9295feb0d666 (patch) | |
tree | 41a92866e742a899e28fd124f3b661d0c6202eac /apps/lib/apps.c | |
parent | 06ae946a41859afa67a0d62873bbb527da546c7b (diff) |
APPS: remove spurious errors when certain config file entries are not provided
This backports the functional essence of #20971.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/21050)
(cherry picked from commit 1737fb8f455963b0956c81504a2bec4304bd902d)
Diffstat (limited to 'apps/lib/apps.c')
-rw-r--r-- | apps/lib/apps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 265055543a..891af71730 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1671,7 +1671,10 @@ CA_DB *load_index(const char *dbfile, DB_ATTR *db_attr) char *p = NCONF_get_string(dbattr_conf, NULL, "unique_subject"); if (p) { retdb->attributes.unique_subject = parse_yesno(p, 1); + } else { + ERR_clear_error(); } + } retdb->dbfname = OPENSSL_strdup(dbfile); |