summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 16:24:16 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 03:29:28 +0200
commit2b601d72d55bb6cbdd1e47b002782159e0e589bf (patch)
tree1f166ec0b7fb2b8e0f4100e4380247d5c33e060a
parent9b2d3142c1751a55d942ee8cb6bdcdee713989c2 (diff)
downloadsamba-2b601d72d55bb6cbdd1e47b002782159e0e589bf.tar.gz
samba-2b601d72d55bb6cbdd1e47b002782159e0e589bf.tar.bz2
samba-2b601d72d55bb6cbdd1e47b002782159e0e589bf.zip
s3: Remove talloc_autofree_context() from lookup_unix_user_name()
pwd is freed in this routine immediately
-rw-r--r--source3/passdb/util_unixsids.c2
1 files changed, 1 insertions, 1 deletions
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;
}