diff options
Diffstat (limited to 'source3')
-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)); |