summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/reply.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-16 18:26:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:31 -0500
commit3948fcac493ed131bc40358138e8dc17a58853f7 (patch)
tree793e45d672b6bd3ac2d2459beedb0337273b7556 /source4/smb_server/smb/reply.c
parent83d8fd3dcfb326354173b585905c4438405d2a74 (diff)
downloadsamba-3948fcac493ed131bc40358138e8dc17a58853f7.tar.gz
samba-3948fcac493ed131bc40358138e8dc17a58853f7.tar.bz2
samba-3948fcac493ed131bc40358138e8dc17a58853f7.zip
r14485: mark smb commands as need session and need tcon explicit,
so we only need to check in one global place and can't forget in other places... metze (This used to be commit 742be8e075651c3b7e502ec6da01286fd7a2d4ca)
Diffstat (limited to 'source4/smb_server/smb/reply.c')
-rw-r--r--source4/smb_server/smb/reply.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c
index 00589ce501..cc625b6d03 100644
--- a/source4/smb_server/smb/reply.c
+++ b/source4/smb_server/smb/reply.c
@@ -1362,11 +1362,6 @@ void smbsrv_reply_tdis(struct smbsrv_request *req)
{
REQ_CHECK_WCT(req, 0);
- if (req->tcon == NULL) {
- smbsrv_send_error(req, NT_STATUS_INVALID_HANDLE);
- return;
- }
-
talloc_free(req->tcon);
/* construct reply */
@@ -2185,11 +2180,6 @@ void smbsrv_reply_ulogoffX(struct smbsrv_request *req)
struct smbsrv_tcon *tcon;
NTSTATUS status;
- if (!req->session) {
- smbsrv_send_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
- return;
- }
-
/* in user level security we are supposed to close any files
open by this user on all open tree connects */
for (tcon=req->smb_conn->smb_tcons.list;tcon;tcon=tcon->next) {
@@ -2350,39 +2340,6 @@ void smbsrv_reply_ntcancel(struct smbsrv_request *req)
talloc_free(req);
}
-/****************************************************************************
- Reply to an SMBsends request
-****************************************************************************/
-void smbsrv_reply_sends(struct smbsrv_request *req)
-{
- smbsrv_send_error(req, NT_STATUS_FOOBAR);
-}
-
-/****************************************************************************
- Reply to an SMBsendstrt request
-****************************************************************************/
-void smbsrv_reply_sendstrt(struct smbsrv_request *req)
-{
- smbsrv_send_error(req, NT_STATUS_FOOBAR);
-}
-
-/****************************************************************************
- Reply to an SMBsendend request
-****************************************************************************/
-void smbsrv_reply_sendend(struct smbsrv_request *req)
-{
- smbsrv_send_error(req, NT_STATUS_FOOBAR);
-}
-
-/****************************************************************************
- Reply to an SMBsendtxt request
-****************************************************************************/
-void smbsrv_reply_sendtxt(struct smbsrv_request *req)
-{
- smbsrv_send_error(req, NT_STATUS_FOOBAR);
-}
-
-
/*
parse the called/calling names from session request
*/