diff options
author | Volker Lendecke <vl@samba.org> | 2008-05-06 15:16:45 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-05-07 14:47:29 +0200 |
commit | 4f731150bdc4e7257e1fc87e6ea6944d33cb1e34 (patch) | |
tree | e0c4cdffc10428531646b30329913dc8260021ad /source3/smbd | |
parent | 193b63f326d31907bdc4486fadec4a7f4dcb0bac (diff) | |
download | samba-4f731150bdc4e7257e1fc87e6ea6944d33cb1e34.tar.gz samba-4f731150bdc4e7257e1fc87e6ea6944d33cb1e34.tar.bz2 samba-4f731150bdc4e7257e1fc87e6ea6944d33cb1e34.zip |
Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
(This used to be commit 1843ea64ab1df5ced5926aedbeb27c8320b0c70b)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d57156762f..f589f0644b 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)); |