aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/conf/conf_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/conf/conf_mod.c')
-rw-r--r--openssl/crypto/conf/conf_mod.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/openssl/crypto/conf/conf_mod.c b/openssl/crypto/conf/conf_mod.c
index ee9c677d9..df1642a0a 100644
--- a/openssl/crypto/conf/conf_mod.c
+++ b/openssl/crypto/conf/conf_mod.c
@@ -582,8 +582,14 @@ int CONF_parse_list(const char *list_, int sep, int nospc,
{
int ret;
const char *lstart, *tmpend, *p;
- lstart = list_;
+ if(list_ == NULL)
+ {
+ CONFerr(CONF_F_CONF_PARSE_LIST, CONF_R_LIST_CANNOT_BE_NULL);
+ return 0;
+ }
+
+ lstart = list_;
for(;;)
{
if (nospc)