summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-16 18:23:55 -0400
committerAndrew Bartlett <abartlet@samba.org>2010-07-19 14:20:00 +1000
commite60ed80754f1f51c74bc338cc3a81d12f49d9687 (patch)
treee6a68ce556399746cb05e0bdb3c7ff338cf00162 /source3/rpc_server
parente4bd6eb72fba92c0b0a3e5e636e5312629758bc1 (diff)
downloadsamba-e60ed80754f1f51c74bc338cc3a81d12f49d9687.tar.gz
samba-e60ed80754f1f51c74bc338cc3a81d12f49d9687.tar.bz2
samba-e60ed80754f1f51c74bc338cc3a81d12f49d9687.zip
s3-auth: Simplify how we free the auth_context
Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index ebd37241a6..a57836aa75 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -1380,7 +1380,7 @@ static NTSTATUS _netr_LogonSamLogon_base(pipes_struct *p,
user_info, &server_info);
}
- (auth_context->free)(&auth_context);
+ TALLOC_FREE(auth_context);
free_user_info(&user_info);
DEBUG(5,("%s: check_password returned status %s\n",