diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-25 16:24:16 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-26 03:29:28 +0200 |
commit | 2b601d72d55bb6cbdd1e47b002782159e0e589bf (patch) | |
tree | 1f166ec0b7fb2b8e0f4100e4380247d5c33e060a /source3 | |
parent | 9b2d3142c1751a55d942ee8cb6bdcdee713989c2 (diff) | |
download | samba-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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/util_unixsids.c | 2 |
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; } |