From 2b601d72d55bb6cbdd1e47b002782159e0e589bf Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 16:24:16 -0700 Subject: s3: Remove talloc_autofree_context() from lookup_unix_user_name() pwd is freed in this routine immediately --- source3/passdb/util_unixsids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/passdb/util_unixsids.c') diff --git a/source3/passdb/util_unixsids.c b/source3/passdb/util_unixsids.c index 1bd07c7a2f..24d2c45449 100644 --- a/source3/passdb/util_unixsids.c +++ b/source3/passdb/util_unixsids.c @@ -64,7 +64,7 @@ bool lookup_unix_user_name(const char *name, struct dom_sid *sid) struct passwd *pwd; bool ret; - pwd = getpwnam_alloc(talloc_autofree_context(), name); + pwd = getpwnam_alloc(talloc_tos(), name); if (pwd == NULL) { return False; } -- cgit