From dc1f11666d4d7f7c821623649d8c23f85a8ace54 Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Tue, 9 Mar 2021 14:49:30 +0100 Subject: [PATCH] Fixed CID 588443 --- src/ssl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 36ae2502b..7a33e4977 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -20276,8 +20276,11 @@ int wolfSSL_NCONF_load(WOLFSSL_CONF *conf, const char *file, long *eline) } sectionName[sectionNameLen] = '\0'; - if (!(section = wolfSSL_CONF_get_section(conf, sectionName))) + if (!(section = wolfSSL_CONF_get_section(conf, sectionName))) { section = wolfSSL_CONF_new_section(conf, sectionName); + if (!section) + goto cleanup; + } } else { char* name;