summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-26 07:31:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:51 -0500
commit382fc485b2285434f7613255da7b3e894222dcf3 (patch)
tree0302e02888e8a9c4c7b9170b4f74025b381f9c0d /source4/rpc_server
parent6a7119fc83326b8243a1ce4598fe6b6c4b013e45 (diff)
downloadsamba-382fc485b2285434f7613255da7b3e894222dcf3.tar.gz
samba-382fc485b2285434f7613255da7b3e894222dcf3.tar.bz2
samba-382fc485b2285434f7613255da7b3e894222dcf3.zip
r7927: fixed an error on partial socket writes in the rpc server
(This used to be commit 3c7b5de67294ef161289af7da6716b44ffc5d526)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c2
-rw-r--r--source4/rpc_server/dcerpc_sock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index f4059e4a46..709216db46 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -1103,7 +1103,7 @@ NTSTATUS dcesrv_input(struct dcesrv_connection *dce_conn, const DATA_BLOB *data)
write_fn() should return the number of bytes successfully written.
- this will return STATUS_BUFFER_OVERFLOW if there is more to be read
+ this will return STATUS_BUFFER_OVERFLOW if there is more to be written
from the current fragment
*/
NTSTATUS dcesrv_output(struct dcesrv_connection *dce_conn,
diff --git a/source4/rpc_server/dcerpc_sock.c b/source4/rpc_server/dcerpc_sock.c
index ab05a3b8b7..317655cfcf 100644
--- a/source4/rpc_server/dcerpc_sock.c
+++ b/source4/rpc_server/dcerpc_sock.c
@@ -134,7 +134,7 @@ static void dcesrv_sock_send(struct stream_connection *conn, uint16_t flags)
NTSTATUS status;
status = dcesrv_output(dce_conn, conn->socket, dcerpc_write_fn);
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_IS_ERR(status)) {
dcesrv_terminate_connection(dce_conn, "eof on socket");
return;
}