aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-06-21 15:54:25 +0100
committerMatt Caswell <matt@openssl.org>2017-08-21 08:44:44 +0100
commit64d9844ab6b6fb97ca270e236741f7dd61c1940b (patch)
tree7526fa8215d191e0219e5ca520a1acb9a2857084
parent437e5050d585ede90301ddeee1532e22064e63eb (diff)
downloadopenssl-64d9844ab6b6fb97ca270e236741f7dd61c1940b.tar.gz
Remove OPENSSL_assert() from conf_api.c
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3740)
-rw-r--r--crypto/conf/conf_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c
index 5535416ab3..6026dca928 100644
--- a/crypto/conf/conf_api.c
+++ b/crypto/conf/conf_api.c
@@ -204,7 +204,8 @@ CONF_VALUE *_CONF_new_section(CONF *conf, const char *section)
v->value = (char *)sk;
vv = lh_CONF_VALUE_insert(conf->data, v);
- OPENSSL_assert(vv == NULL);
+ if (vv != NULL)
+ goto err;
return v;
err: