Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
authorVolker Lendecke <vl@samba.org>
Tue, 6 May 2008 13:16:45 +0000 (15:16 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 7 May 2008 12:47:29 +0000 (14:47 +0200)
(This used to be commit 1843ea64ab1df5ced5926aedbeb27c8320b0c70b)

source3/smbd/service.c

index d57156762f247e5ab913b0464cb1bed6a3afd63c..f589f0644b84b0d8a99ed21c962ea405f2cf9023 100644 (file)
@@ -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));