From bf6bb749851ec757ee2e110597f2c492acc28f5c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Nov 2006 15:56:20 +0000 Subject: r19657: Correctly check for malloc failure (This used to be commit e5b5c9b058b7f2a6188684019ffe42e497ac6b6c) --- source3/nsswitch/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 7490a73195..7f5d098c45 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -700,7 +700,7 @@ static NTSTATUS lookup_usergroups_memberof(struct winbindd_domain *domain, } *p_num_groups = num_groups; - status = (user_sids != NULL) ? NT_STATUS_OK : NT_STATUS_NO_MEMORY; + status = (*user_sids != NULL) ? NT_STATUS_OK : NT_STATUS_NO_MEMORY; DEBUG(3,("ads lookup_usergroups (memberof) succeeded for dn=%s\n", user_dn)); done: -- cgit