summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/request.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-06 18:29:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:19 -0500
commitedd5b847bcd5a75770ea9de7ac1c419de8bc76ba (patch)
tree8967ebada7819dd611af1510bb4a83d7c589c616 /source4/smb_server/smb/request.c
parent8d91f3dec02fd024903ac7ef748d704ef6f25228 (diff)
downloadsamba-edd5b847bcd5a75770ea9de7ac1c419de8bc76ba.tar.gz
samba-edd5b847bcd5a75770ea9de7ac1c419de8bc76ba.tar.bz2
samba-edd5b847bcd5a75770ea9de7ac1c419de8bc76ba.zip
r13877: remove smbsrv_send_dos_error() and use smbsrv_send_error(..,NT_STATUS_DOS())
metze (This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
Diffstat (limited to 'source4/smb_server/smb/request.c')
-rw-r--r--source4/smb_server/smb/request.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source4/smb_server/smb/request.c b/source4/smb_server/smb/request.c
index 4b501ad973..cc72b412e7 100644
--- a/source4/smb_server/smb/request.c
+++ b/source4/smb_server/smb/request.c
@@ -312,25 +312,6 @@ void smbsrv_send_reply(struct smbsrv_request *req)
smbsrv_send_reply_nosign(req);
}
-
-
-/*
- construct and send an error packet with a forced DOS error code
- this is needed to match win2000 behaviour for some parts of the protocol
-*/
-void smbsrv_send_dos_error(struct smbsrv_request *req, uint8_t eclass, uint16_t ecode)
-{
- /* if the basic packet hasn't been setup yet then do it now */
- if (req->out.buffer == NULL) {
- smbsrv_setup_reply(req, 0, 0);
- }
-
- SCVAL(req->out.hdr, HDR_RCLS, eclass);
- SSVAL(req->out.hdr, HDR_ERR, ecode);
- SSVAL(req->out.hdr, HDR_FLG2, SVAL(req->out.hdr, HDR_FLG2) & ~FLAGS2_32_BIT_ERROR_CODES);
- smbsrv_send_reply(req);
-}
-
/*
setup the header of a reply to include an NTSTATUS code
*/