1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

s3: Fix a valgrind error

nss_get_info_cached does not necessarily fill in gid
This commit is contained in:
Volker Lendecke 2010-06-28 13:51:51 +02:00
parent 09a9cc32ee
commit 8707be6d75

View File

@ -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 */