diff options
author | Ben Laurie <ben@openssl.org> | 2007-04-01 18:00:52 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2007-04-01 18:00:52 +0000 |
commit | 2ec0be9e778b7603494f8b9b1ccfc12b9a269760 (patch) | |
tree | 0a22620c1ce3ca1af59abaab7add94db3cbf3eff /crypto/conf/conf_mod.c | |
parent | c2d1c2d319838d57269f38df16fcde180ca7d5f1 (diff) |
Don't die if the value is NULL (Coverity CID 98).
Diffstat (limited to 'crypto/conf/conf_mod.c')
-rw-r--r-- | crypto/conf/conf_mod.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/conf/conf_mod.c b/crypto/conf/conf_mod.c index 587211a59c..7c9b42f767 100644 --- a/crypto/conf/conf_mod.c +++ b/crypto/conf/conf_mod.c @@ -581,8 +581,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) |