From 8a48ca4e3f2509571f0910165c9e8763864e9c7a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 16:31:18 -0700 Subject: s3: Remove talloc_autofree_context() from change_to_guest() pass is freed at the exit of this routine --- source3/smbd/uid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 3b40cefd36..c52a819ba3 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -32,7 +32,7 @@ bool change_to_guest(void) { struct passwd *pass; - pass = getpwnam_alloc(talloc_autofree_context(), lp_guestaccount()); + pass = getpwnam_alloc(talloc_tos(), lp_guestaccount()); if (!pass) { return false; } -- cgit