summaryrefslogtreecommitdiffstats
path: root/apps/cmp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2023-05-16 10:17:03 +0200
committerDr. David von Oheimb <dev@ddvo.net>2023-05-25 09:04:35 +0200
commitda7f81d39308f9ecab6fde1f9116ff673ef3f3b3 (patch)
tree3f1b8310b685dc306c3ff266e552d96829ea1db0 /apps/cmp.c
parentAPPS/ca: remove spurious errors when certain config file entries are not prov... (diff)
downloadopenssl-da7f81d39308f9ecab6fde1f9116ff673ef3f3b3.tar.xz
openssl-da7f81d39308f9ecab6fde1f9116ff673ef3f3b3.zip
APPS: replace awkward and error-prone pattern by calls to new app_conf_try_string()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/20971)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r--apps/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 1cd8841b61..a3d0c19dd3 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2187,7 +2187,7 @@ static char *conf_get_string(const CONF *src_conf, const char *groups,
const char *end = groups + strlen(groups);
while ((end = prev_item(groups, end)) != NULL) {
- if ((res = NCONF_get_string(src_conf, opt_item, name)) != NULL)
+ if ((res = app_conf_try_string(src_conf, opt_item, name)) != NULL)
return res;
}
return res;