diff options
author | Simo Sorce <idra@samba.org> | 2010-07-16 19:44:22 -0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-07-19 14:20:04 +1000 |
commit | c09dcb903cdc1a68f71e892501a450df31367a54 (patch) | |
tree | 7c7938d79d20e66f8274030aabf79a30c9d39320 /source3/rpc_server | |
parent | 673fcfa3775ac6bdc467dde0bcf6670966cab50c (diff) | |
download | samba-c09dcb903cdc1a68f71e892501a450df31367a54.tar.gz samba-c09dcb903cdc1a68f71e892501a450df31367a54.tar.bz2 samba-c09dcb903cdc1a68f71e892501a450df31367a54.zip |
s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contexts
Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state.
Remote auth_ntlmssp_end and use TALLOC_FREE in the callers.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index a7a5f4d676..a56a6345cc 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -85,12 +85,7 @@ static void dump_pdu_region(const char *name, int v, static void free_pipe_ntlmssp_auth_data(struct pipe_auth_data *auth) { - struct auth_ntlmssp_state *a = auth->a_u.auth_ntlmssp_state; - - if (a) { - auth_ntlmssp_end(&a); - } - auth->a_u.auth_ntlmssp_state = NULL; + TALLOC_FREE(auth->a_u.auth_ntlmssp_state); } static DATA_BLOB generic_session_key(void) |