s3:winbindd: initialize dst->primary_gid with (gid_t)-1
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Jul 2015 05:12:07 +0000 (07:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 Jul 2015 17:06:08 +0000 (19:06 +0200)
We should not leave this uninitialized.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jul 17 19:06:08 CEST 2015 on sn-devel-104

source3/winbindd/winbindd_rpc.c

index 8471343735b94df443602bc3af53f8b8418ada1d..386396a1e19174e7ee30bc46282507ff6b58ef95 100644 (file)
@@ -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