1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s3: Remove talloc_autofree_context() from lookup_unix_user_name()

pwd is freed in this routine immediately
This commit is contained in:
Volker Lendecke 2010-09-25 16:24:16 -07:00
parent 9b2d3142c1
commit 2b601d72d5

View File

@ -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;
}