summaryrefslogtreecommitdiff
path: root/source3/smbd/seal.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-16 19:44:22 -0400
committerAndrew Bartlett <abartlet@samba.org>2010-07-19 14:20:04 +1000
commitc09dcb903cdc1a68f71e892501a450df31367a54 (patch)
tree7c7938d79d20e66f8274030aabf79a30c9d39320 /source3/smbd/seal.c
parent673fcfa3775ac6bdc467dde0bcf6670966cab50c (diff)
downloadsamba-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/smbd/seal.c')
-rw-r--r--source3/smbd/seal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c
index 171e809b44..ad785a4588 100644
--- a/source3/smbd/seal.c
+++ b/source3/smbd/seal.c
@@ -101,7 +101,7 @@ static void destroy_auth_ntlmssp(struct smb_srv_trans_enc_ctx *ec)
*/
if (ec->auth_ntlmssp_state) {
- auth_ntlmssp_end(&ec->auth_ntlmssp_state);
+ TALLOC_FREE(ec->auth_ntlmssp_state);
/* The auth_ntlmssp_end killed this already. */
ec->es->s.ntlmssp_state = NULL;
}