summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-28 13:51:51 +0200
committerVolker Lendecke <vl@samba.org>2010-06-28 13:54:45 +0200
commit8707be6d7587217a62abdedf2b4294e31c261260 (patch)
tree6c6d469e590ad2b785181887b7db983886569be2 /source3/winbindd
parent09a9cc32ee611c20c0e3384c404dd39f615b89ed (diff)
downloadsamba-8707be6d7587217a62abdedf2b4294e31c261260.tar.gz
samba-8707be6d7587217a62abdedf2b4294e31c261260.tar.bz2
samba-8707be6d7587217a62abdedf2b4294e31c261260.zip
s3: Fix a valgrind error
nss_get_info_cached does not necessarily fill in gid
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_ads.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 4dc01b08b4..96c60a57b9 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -463,7 +463,7 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
uint32 group_rid;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct netr_SamInfo3 *user = NULL;
- gid_t gid;
+ gid_t gid = -1;
int ret;
char *ads_name;
@@ -471,7 +471,6 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
info->homedir = NULL;
info->shell = NULL;
- info->primary_gid = (gid_t)-1;
/* try netsamlogon cache first */