From: Stefan Metzmacher Date: Thu, 16 Jul 2015 05:12:07 +0000 (+0200) Subject: s3:winbindd: initialize dst->primary_gid with (gid_t)-1 X-Git-Tag: talloc-2.1.3~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=323e4f89fca2f4f0e017a36a27427be32b42fc54;p=thirdparty%2Fsamba.git s3:winbindd: initialize dst->primary_gid with (gid_t)-1 We should not leave this uninitialized. Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Reviewed-by: Michael Adam Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Fri Jul 17 19:06:08 CEST 2015 on sn-devel-104 --- diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index 8471343735b..386396a1e19 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -120,7 +120,7 @@ NTSTATUS rpc_query_user_list(TALLOC_CTX *mem_ctx, dst->homedir = NULL; dst->shell = NULL; - + dst->primary_gid = (gid_t)-1; sid_compose(&dst->user_sid, domain_sid, rid); /* For the moment we set the primary group for