diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-19 15:02:59 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-19 21:09:10 +0100 |
commit | e518e19bc0000019f131354f55e9f5b55f6a2c5e (patch) | |
tree | 5c8723a1510ebb17ff4bd21068aa67159ad3a68d /source3/auth | |
parent | 042201bcc1b7ffc88cdc22b64c70c653b2433703 (diff) | |
download | samba-e518e19bc0000019f131354f55e9f5b55f6a2c5e.tar.gz samba-e518e19bc0000019f131354f55e9f5b55f6a2c5e.tar.bz2 samba-e518e19bc0000019f131354f55e9f5b55f6a2c5e.zip |
Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c index 4fca5bcbe4..58c765226d 100644 --- a/source3/auth/auth_unix.c +++ b/source3/auth/auth_unix.c @@ -92,7 +92,7 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, struct passwd *pass = NULL; become_root(); - pass = Get_Pwnam(user_info->internal_username); + pass = Get_Pwnam_alloc(talloc_tos(), user_info->internal_username); /** @todo This call assumes a ASCII password, no charset transformation is @@ -123,6 +123,7 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, } } + TALLOC_FREE(pass); return nt_status; } |