summaryrefslogtreecommitdiff
path: root/source4/lib/util_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util_sock.c')
-rw-r--r--source4/lib/util_sock.c3
1 files changed, 3 insertions, 0 deletions
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;