summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-06-16 06:49:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:42 -0500
commitb00103dac1bf9e559e132c62e768dba9408b94eb (patch)
tree34673c3c65854992a7bc16b95e9e6d1d976b2979 /source4/ntvfs
parenteca6982a951b7f7051d6386a58cf35caedc84f3b (diff)
downloadsamba-b00103dac1bf9e559e132c62e768dba9408b94eb.tar.gz
samba-b00103dac1bf9e559e132c62e768dba9408b94eb.tar.bz2
samba-b00103dac1bf9e559e132c62e768dba9408b94eb.zip
r1165: fixed handling of SMBtrans replies that should return STATUS_BUFFER_OVERFLOW when more data is present.
(This used to be commit 0e557fe85748558affd20a58455c4b75fee69e27)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c
index 9279e0e85a..5b61c9285e 100644
--- a/source4/ntvfs/ipc/vfs_ipc.c
+++ b/source4/ntvfs/ipc/vfs_ipc.c
@@ -401,7 +401,7 @@ static NTSTATUS ipc_read(struct request_context *req, union smb_read *rd)
}
status = dcesrv_output_blob(p->dce_conn, &data);
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -418,7 +418,7 @@ static NTSTATUS ipc_read(struct request_context *req, union smb_read *rd)
return NT_STATUS_NOT_SUPPORTED;
}
- return NT_STATUS_OK;
+ return status;
}
/*
@@ -624,7 +624,7 @@ static NTSTATUS ipc_dcerpc_cmd(struct request_context *req, struct smb_trans2 *t
the error is encoded at the dcerpc level
*/
status = dcesrv_output_blob(p->dce_conn, &trans->out.data);
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -632,7 +632,7 @@ static NTSTATUS ipc_dcerpc_cmd(struct request_context *req, struct smb_trans2 *t
trans->out.setup = NULL;
trans->out.params = data_blob(NULL, 0);
- return NT_STATUS_OK;
+ return status;
}