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/auth/auth_sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/auth/auth_sam.c') diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c index a6db8ef63d..1df2103eb6 100644 --- a/source4/auth/auth_sam.c +++ b/source4/auth/auth_sam.c @@ -163,7 +163,7 @@ static NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx, int i; const char **workstations = str_list_make(mem_ctx, workstation_list, ","); - for (i = 0; workstations[i]; i++) { + for (i = 0; workstations && workstations[i]; i++) { DEBUG(10,("sam_account_ok: checking for workstation match '%s' and '%s'\n", workstations[i], user_info->workstation_name)); -- cgit