r16361: Fix Klocwork ID 1731 1770 1771 1775 1796
[tprouty/samba.git] / source / nsswitch / winbindd_ads.c
index 3ed651f8cdcffe82a75dea028897439b1ff63852..250b5f3b8c2784bdb462e39e886b408e6f0d7968 100644 (file)
@@ -904,7 +904,11 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
        members = NULL;
        num_members = 0;
 
-       attrs = TALLOC_ARRAY(mem_ctx, const char *, 3);
+       if ((attrs = TALLOC_ARRAY(mem_ctx, const char *, 3)) == NULL) {
+               status = NT_STATUS_NO_MEMORY;
+               goto done;
+       }
+               
        attrs[1] = talloc_strdup(mem_ctx, "usnChanged");
        attrs[2] = NULL;