summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-20 16:48:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:13 -0500
commit3cb64219e2cd492d25931f5442cbd484d6930950 (patch)
tree6dafd1f62deaab05aa4f2db5b7664e8864ff6024 /source4/smb_server/smb2
parent35d6a53ff7b7b906d9a42bad5b7647a2abc6a3f6 (diff)
downloadsamba-3cb64219e2cd492d25931f5442cbd484d6930950.tar.gz
samba-3cb64219e2cd492d25931f5442cbd484d6930950.tar.bz2
samba-3cb64219e2cd492d25931f5442cbd484d6930950.zip
r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
metze (This used to be commit 6c304a1a5f5dc6b2d3774682303874444a59b07d)
Diffstat (limited to 'source4/smb_server/smb2')
-rw-r--r--source4/smb_server/smb2/tcon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c
index 2c135e0add..bfb3904d47 100644
--- a/source4/smb_server/smb2/tcon.c
+++ b/source4/smb_server/smb2/tcon.c
@@ -59,7 +59,7 @@ struct ntvfs_handle *smb2srv_pull_handle(struct smb2srv_request *req, const uint
tcon = smbsrv_smb2_tcon_find(req->session, tid, req->request_time);
}
- handle = smbsrv_smb_handle_find(tcon, hid, req->request_time);
+ handle = smbsrv_smb2_handle_find(tcon, hid, req->request_time);
if (!handle) {
return NULL;
}
@@ -83,12 +83,12 @@ void smb2srv_push_handle(uint8_t *base, uint_t offset, struct ntvfs_handle *ntvf
static NTSTATUS smb2srv_handle_create_new(void *private_data, struct ntvfs_request *ntvfs, struct ntvfs_handle **_h)
{
- struct smbsrv_request *req = talloc_get_type(ntvfs->frontend_data.private_data,
- struct smbsrv_request);
+ struct smb2srv_request *req = talloc_get_type(ntvfs->frontend_data.private_data,
+ struct smb2srv_request);
struct smbsrv_handle *handle;
struct ntvfs_handle *h;
- handle = smbsrv_handle_new(req);
+ handle = smbsrv_handle_new(req->session, req->tcon, req, req->request_time);
if (!handle) return NT_STATUS_INSUFFICIENT_RESOURCES;
h = talloc_zero(handle, struct ntvfs_handle);