From 8371c0e44c91ed963493664daf93cdc9b467a8e8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Nov 2006 15:55:06 +0000 Subject: r19656: Correctly check for malloc failure (This used to be commit 3d0661b0393804707eb42d9ee9377a622333f252) --- source3/nsswitch/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_ads.c') diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 943d69e882..7490a73195 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -839,7 +839,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, } *p_num_groups = (uint32)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 (tokenGroups) succeeded for sid=%s\n", sid_to_string(sid_string, sid))); -- cgit