projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix segfault with empty fields as last in the config.
[openssl.git]
/
ssl
/
ssl_conf.c
diff --git
a/ssl/ssl_conf.c
b/ssl/ssl_conf.c
index 0ee6e46423fc1633e74864f9729f883ac8970c5e..d950242f0ba7049055806a21af40a8d25ad191cd 100644
(file)
--- a/
ssl/ssl_conf.c
+++ b/
ssl/ssl_conf.c
@@
-167,6
+167,8
@@
static int ssl_set_option_list(const char *elem, int len, void *usr)
* len == -1 indicates not being called in list context, just for single
* command line switches, so don't allow +, -.
*/
+ if (elem == NULL)
+ return 0;
if (len != -1) {
if (*elem == '+') {
elem++;