s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable.
authorJeremy Allison <jra@samba.org>
Thu, 23 Jul 2015 17:52:43 +0000 (10:52 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 31 Aug 2015 21:35:54 +0000 (23:35 +0200)
Fix created by by: wei zhong <wweyeww@gmail.com>

Only for 4.2.x and below, master code already fixed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10823

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Mon Aug 31 23:35:54 CEST 2015 on sn-devel-104

source3/winbindd/winbindd_dual_srv.c

index 911fd7565b6c080fa0cfd5ed8882dcd02e70f42b..2df4af7468f4a123a28c286f982c1a5e32a8e9f0 100644 (file)
@@ -380,7 +380,7 @@ NTSTATUS _wbint_QueryGroupList(struct pipes_struct *p,
 {
        struct winbindd_domain *domain = wb_child_domain();
        uint32_t i, num_groups;
-       struct wb_acct_info *groups;
+       struct wb_acct_info *groups = NULL;
        struct wbint_Principal *result;
        NTSTATUS status;