From 5a1cf98998fb81c8b7bdab28d36cea04f7c22edc Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 28 Sep 2005 14:12:09 +0000 Subject: r10579: str_list_make() can return NULL (This used to be commit f547ab4644fd1c8ae2e44a25e874abf35e02d986) --- source4/lib/util_sock.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/util_sock.c b/source4/lib/util_sock.c index be968666a7..8a65a27d02 100644 --- a/source4/lib/util_sock.c +++ b/source4/lib/util_sock.c @@ -75,6 +75,9 @@ void set_socket_options(int fd, const char *options) const char **options_list = str_list_make(NULL, options, " \t,"); int j; + if (!options_list) + return; + for (j = 0; options_list[j]; j++) { const char *tok = options_list[j]; int ret=0,i; -- cgit