From: Volker Lendecke Date: Wed, 7 May 2008 12:25:47 +0000 (+0200) Subject: Do not unnecessarily mess with the results in find_forced_group() X-Git-Tag: samba-4.0.0alpha6~801^2~1411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39bd6a95959e9015262b7b4250d3fcd58be44fc9;p=thirdparty%2Fsamba.git Do not unnecessarily mess with the results in find_forced_group() (This used to be commit 6d9860d09b54c61625f011c2d56d710aa59d7686) --- diff --git a/source3/smbd/service.c b/source3/smbd/service.c index e3635d45dbf..60d962f3fdf 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -543,9 +543,6 @@ static NTSTATUS find_forced_group(bool force_user, bool user_must_be_member = False; gid_t gid; - ZERO_STRUCTP(pgroup_sid); - *pgid = (gid_t)-1; - groupname = talloc_strdup(talloc_tos(), lp_force_group(snum)); if (groupname == NULL) { DEBUG(1, ("talloc_strdup failed\n"));