From: Jeremy Allison Date: Thu, 23 Jul 2015 17:52:43 +0000 (-0700) Subject: s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable. X-Git-Tag: samba-4.1.20~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=487c3b3435becb59848fadf25f268cba6e03ef1c;p=thirdparty%2Fsamba.git s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable. Fix created by by: wei zhong 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 Autobuild-User(v4-1-test): Karolin Seeger Autobuild-Date(v4-1-test): Mon Aug 31 23:35:54 CEST 2015 on sn-devel-104 --- diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 911fd7565b6..2df4af7468f 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -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;