summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-07 13:39:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:53 -0500
commitf50ff7345d59743669a3a84f6fdd42d4f2f43a43 (patch)
tree0e2934019e25cc289f4896a4ba0cb750fa047d8f /source3/nsswitch
parentd4799f5c7ade91e01d8d4967e58f423b0890aadd (diff)
downloadsamba-f50ff7345d59743669a3a84f6fdd42d4f2f43a43.tar.gz
samba-f50ff7345d59743669a3a84f6fdd42d4f2f43a43.tar.bz2
samba-f50ff7345d59743669a3a84f6fdd42d4f2f43a43.zip
r22744: Fix a valgrind error. parse_domain_username does not necessarily fill in
the domain. (This used to be commit f4f0d7137758cc674876517590807cc3d634043d)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_group.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index f521790224..21ad73a70e 100644
--- a/source3/nsswitch/winbindd_group.c
+++ b/source3/nsswitch/winbindd_group.c
@@ -494,6 +494,9 @@ void winbindd_getgrnam(struct winbindd_cli_state *state)
memset(name_group, 0, sizeof(fstring));
tmp = state->request.data.groupname;
+
+ name_domain[0] = '\0';
+ name_group[0] = '\0';
parse_domain_user(tmp, name_domain, name_group);