]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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>
Tue, 25 Aug 2015 09:25:58 +0000 (11:25 +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-2-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-2-test): Tue Aug 25 11:25:58 CEST 2015 on sn-devel-104

source3/winbindd/winbindd_dual_srv.c

index c19179dff4e5372740215b21acde2b495409b4fd..bff310a6f132b6561492aa3c0c593ce48c5c9bec 100644 (file)
@@ -381,7 +381,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;