summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/smb/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/smb/reply.c')
-rw-r--r--source4/smb_server/smb/reply.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c
index 1b309a0c1fe..ec7b6783fd4 100644
--- a/source4/smb_server/smb/reply.c
+++ b/source4/smb_server/smb/reply.c
@@ -53,16 +53,6 @@ static void reply_tcon_send(struct ntvfs_request *ntvfs)
SMBSRV_CHECK_ASYNC_STATUS(con, union smb_tcon);
- if (con->generic.level == RAW_TCON_TCON) {
- con->tcon.out.max_xmit = req->smb_conn->negotiate.max_recv;
- con->tcon.out.tid = req->tcon->tid;
- } else {
- /* TODO: take a look at tconx.in.flags! */
- con->tconx.out.tid = req->tcon->tid;
- con->tconx.out.dev_type = talloc_strdup(req, req->tcon->ntvfs->dev_type);
- con->tconx.out.fs_type = talloc_strdup(req, req->tcon->ntvfs->fs_type);
- }
-
/* construct reply */
smbsrv_setup_reply(req, 2, 0);
@@ -109,7 +99,7 @@ void smbsrv_reply_tcon(struct smbsrv_request *req)
SMBSRV_SETUP_NTVFS_REQUEST(reply_tcon_send, NTVFS_ASYNC_STATE_MAY_ASYNC);
/* Invoke NTVFS connection hook */
- SMBSRV_CALL_NTVFS_BACKEND(ntvfs_connect(req->ntvfs, req->tcon->share_name));
+ SMBSRV_CALL_NTVFS_BACKEND(ntvfs_connect(req->ntvfs, con));
}
@@ -123,16 +113,6 @@ static void reply_tcon_and_X_send(struct ntvfs_request *ntvfs)
SMBSRV_CHECK_ASYNC_STATUS(con, union smb_tcon);
- if (con->generic.level == RAW_TCON_TCON) {
- con->tcon.out.max_xmit = req->smb_conn->negotiate.max_recv;
- con->tcon.out.tid = req->tcon->tid;
- } else {
- /* TODO: take a look at tconx.in.flags! */
- con->tconx.out.tid = req->tcon->tid;
- con->tconx.out.dev_type = talloc_strdup(req, req->tcon->ntvfs->dev_type);
- con->tconx.out.fs_type = talloc_strdup(req, req->tcon->ntvfs->fs_type);
- }
-
/* construct reply - two variants */
if (req->smb_conn->negotiate.protocol < PROTOCOL_NT1) {
smbsrv_setup_reply(req, 2, 0);
@@ -205,7 +185,7 @@ void smbsrv_reply_tcon_and_X(struct smbsrv_request *req)
SMBSRV_SETUP_NTVFS_REQUEST(reply_tcon_and_X_send, NTVFS_ASYNC_STATE_MAY_ASYNC);
/* Invoke NTVFS connection hook */
- SMBSRV_CALL_NTVFS_BACKEND(ntvfs_connect(req->ntvfs, req->tcon->share_name));
+ SMBSRV_CALL_NTVFS_BACKEND(ntvfs_connect(req->ntvfs, con));
}