From: Andrew Tridgell Date: Wed, 5 Aug 2009 10:19:36 +0000 (+1000) Subject: on buffer overflow windows gives SMBSRV:ERRerror here X-Git-Tag: tevent-0-9-8~475^2~59 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=67b6f5784ae8d2e5c5b783b24a4b0ff555a28d44;p=amitay%2Fsamba.git on buffer overflow windows gives SMBSRV:ERRerror here --- diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c index 0433d3582f4..104caca4460 100644 --- a/source4/smb_server/smb/reply.c +++ b/source4/smb_server/smb/reply.c @@ -1063,7 +1063,7 @@ void smbsrv_reply_write_and_X(struct smbsrv_request *req) /* make sure the data is in bounds */ if (req_data_oob(&req->in.bufinfo, io->writex.in.data, io->writex.in.count)) { - smbsrv_send_error(req, NT_STATUS_FOOBAR); + smbsrv_send_error(req, NT_STATUS_DOS(ERRSRV, ERRerror)); return; }