summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-26 12:13:21 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-05 17:17:28 +0100
commit1075efabc73ef9e890fdb7a53b15cabf467c6a9b (patch)
tree9650b14e43f168f062d26a4f61029d67f16725f7 /source3/smbd/sesssetup.c
parentc579b735d6e5ba5345ae8e26477ab13c2646c84a (diff)
downloadsamba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.tar.gz
samba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.tar.bz2
samba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.zip
s3-auth Add TALLOC_CTX * to auth_generic_prepare()
This makes the long term owner of this memory more clear. So far only the clear cases have been moved from NULL however. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 04783a4fcd..a15afd5e35 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -625,7 +625,7 @@ static void reply_spnego_negotiate(struct smb_request *req,
return;
}
- status = auth_generic_prepare(sconn->remote_address,
+ status = auth_generic_prepare(NULL, sconn->remote_address,
auth_ntlmssp_state);
if (!NT_STATUS_IS_OK(status)) {
/* Kill the intermediate vuid */
@@ -737,7 +737,7 @@ static void reply_spnego_auth(struct smb_request *req,
data_blob_free(&secblob);
if (!*auth_ntlmssp_state) {
- status = auth_generic_prepare(sconn->remote_address,
+ status = auth_generic_prepare(NULL, sconn->remote_address,
auth_ntlmssp_state);
if (!NT_STATUS_IS_OK(status)) {
/* Kill the intermediate vuid */
@@ -1145,7 +1145,7 @@ static void reply_sesssetup_and_X_spnego(struct smb_request *req)
DATA_BLOB chal;
if (!vuser->auth_ntlmssp_state) {
- status = auth_generic_prepare(sconn->remote_address,
+ status = auth_generic_prepare(vuser, sconn->remote_address,
&vuser->auth_ntlmssp_state);
if (!NT_STATUS_IS_OK(status)) {
/* Kill the intermediate vuid */