summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
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;
}