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.2.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e43c43301b7dc407d0c1ebca61c2de5c71698a9;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-2-test): Karolin Seeger Autobuild-Date(v4-2-test): Tue Aug 25 11:25:58 CEST 2015 on sn-devel-104 --- diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index c19179dff4e..bff310a6f13 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -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;