diff options
author | Simo Sorce <idra@samba.org> | 2010-07-16 18:33:38 -0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-07-20 15:52:24 +1000 |
commit | a04bbd281c5b94166e23026ea06e98939250028c (patch) | |
tree | bdf0598bb9c72a1e16d00e3ff1bf072d33f561ea /source3/rpc_server | |
parent | 0bb8d133c9a39873828dbe977513edd31e1a7045 (diff) | |
download | samba-a04bbd281c5b94166e23026ea06e98939250028c.tar.gz samba-a04bbd281c5b94166e23026ea06e98939250028c.tar.bz2 samba-a04bbd281c5b94166e23026ea06e98939250028c.zip |
s3-auth: Refactor and rename auth_ntlmssp_server_info()
Rename it to auth_ntlmssp_steal_server_info() to make it clear that
the server_info struct is stolen from the auth_ntlmssp_state structure.
Use talloc_move instead of manual steal&clear
Add comments to explain what is going on.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 2a995b318b..6211d3b87e 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -502,7 +502,7 @@ static bool pipe_ntlmssp_verify_final(pipes_struct *p, DATA_BLOB *p_resp_blob) TALLOC_FREE(p->server_info); - status = auth_ntlmssp_server_info(p, a, &p->server_info); + status = auth_ntlmssp_steal_server_info(p, a, &p->server_info); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("auth_ntlmssp_server_info failed to obtain the server info for authenticated user: %s\n", nt_errstr(status))); |