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:
parent
9b2d3142c1
commit
2b601d72d5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user