diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-27 05:31:45 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-28 00:56:02 +0200 |
commit | 606be25ecf4a31cba9f15c43ebc650aecb17e765 (patch) | |
tree | c29aceb4a80f7d08feb9ed71b76af8a1b0068261 /source3/auth/auth_util.c | |
parent | d9cffc01be58184312a6a7b55bd523cf8daefa78 (diff) | |
download | samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.tar.gz samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.tar.bz2 samba-606be25ecf4a31cba9f15c43ebc650aecb17e765.zip |
s3:auth Free sampass as soon as we have server_info
We don't keep sampass in server_info anymore
So it makes no sense to keep it around.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index d64cb537c7..854ab89f28 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -733,6 +733,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ser return status; } + TALLOC_FREE(sampass); + (*server_info)->guest = True; status = create_local_token(*server_info); @@ -747,7 +749,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ser (*server_info)->user_session_key = data_blob(zeros, sizeof(zeros)); (*server_info)->lm_session_key = data_blob(zeros, sizeof(zeros)); - alpha_strcpy(tmp, pdb_get_username(sampass), ". _-$", sizeof(tmp)); + alpha_strcpy(tmp, (*server_info)->info3->base.account_name.string, + ". _-$", sizeof(tmp)); (*server_info)->sanitized_username = talloc_strdup(*server_info, tmp); return NT_STATUS_OK; |