From: Volker Lendecke Date: Mon, 7 May 2007 13:39:25 +0000 (+0000) Subject: r22744: Fix a valgrind error. parse_domain_username does not necessarily fill in X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4f0d7137758cc674876517590807cc3d634043d;p=thirdparty%2Fsamba.git r22744: Fix a valgrind error. parse_domain_username does not necessarily fill in the domain. --- diff --git a/source/nsswitch/winbindd_group.c b/source/nsswitch/winbindd_group.c index f5217902244..21ad73a70e1 100644 --- a/source/nsswitch/winbindd_group.c +++ b/source/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);