r19657: Correctly check for malloc failure
authorVolker Lendecke <vlendec@samba.org>
Fri, 10 Nov 2006 15:56:20 +0000 (15:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:45 +0000 (12:15 -0500)
(This used to be commit e5b5c9b058b7f2a6188684019ffe42e497ac6b6c)

source3/nsswitch/winbindd_ads.c

index 7490a7319596fea1dda639a7d85eb86326bafcee..7f5d098c452c0064cbcb150b002c5d415f5448b4 100644 (file)
@@ -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: