summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-30 12:51:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:35:02 -0500
commit89e550ba34d1f00b576aae3d4683ca9ca36afe80 (patch)
tree603a0cfb7d7711cdc3b41b051ccfd898a4fc619d /source4/ntvfs
parent6cf1b0c07c819e9e2afdcb87b2e4fd31ed680b72 (diff)
downloadsamba-89e550ba34d1f00b576aae3d4683ca9ca36afe80.tar.gz
samba-89e550ba34d1f00b576aae3d4683ca9ca36afe80.tar.bz2
samba-89e550ba34d1f00b576aae3d4683ca9ca36afe80.zip
r9794: r11627@blu: tridge | 2005-08-30 22:55:27 +1000
fill in correct error code for zero length and too large IPC reads (This used to be commit bf6558b8971ccda080d463753ddae977967e7093)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c
index aa0909ceb6..3f91323fe5 100644
--- a/source4/ntvfs/ipc/vfs_ipc.c
+++ b/source4/ntvfs/ipc/vfs_ipc.c
@@ -372,7 +372,7 @@ static NTSTATUS ipc_read(struct ntvfs_module_context *ntvfs,
DATA_BLOB data;
uint16_t fnum;
struct pipe_state *p;
- NTSTATUS status = NT_STATUS_FOOBAR;
+ NTSTATUS status = NT_STATUS_OK;
if (rd->generic.level != RAW_READ_GENERIC) {
return ntvfs_map_read(req, rd, ntvfs);
@@ -388,7 +388,7 @@ static NTSTATUS ipc_read(struct ntvfs_module_context *ntvfs,
data.length = rd->readx.in.maxcnt;
data.data = rd->readx.out.data;
if (data.length > UINT16_MAX) {
- data.length = 0;
+ data.length = UINT16_MAX;
}
if (data.length != 0) {