From: Volker Lendecke Date: Tue, 6 May 2008 13:16:45 +0000 (+0200) Subject: Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum X-Git-Tag: samba-4.0.0alpha6~801^2~1487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f731150bdc4e7257e1fc87e6ea6944d33cb1e34;p=thirdparty%2Fsamba.git Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum (This used to be commit 1843ea64ab1df5ced5926aedbeb27c8320b0c70b) --- diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d57156762f2..f589f0644b8 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -683,7 +683,7 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, char *found_username = NULL; guest = True; - pass = getpwnam_alloc(NULL, guestname); + pass = getpwnam_alloc(talloc_tos(), guestname); if (!pass) { DEBUG(0,("make_connection_snum: Invalid guest " "account %s??\n",guestname));