1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00

r3320: fixed bugs in the rpc_server code in handling partial packet receives and sends

it now passes the non-blocking test suite
(This used to be commit 6cdf485fb2)
This commit is contained in:
Andrew Tridgell
2004-10-28 11:59:03 +00:00
committed by Gerald (Jerry) Carter
parent 28c3dcf6a3
commit 8262efeb0b
2 changed files with 3 additions and 5 deletions

View File

@@ -907,7 +907,6 @@ NTSTATUS dcesrv_output(struct dcesrv_connection *dce_conn,
struct dcesrv_call_state *call;
struct dcesrv_call_reply *rep;
ssize_t nwritten;
NTSTATUS status = NT_STATUS_OK;
call = dce_conn->call_list;
if (!call || !call->replies) {
@@ -928,8 +927,6 @@ NTSTATUS dcesrv_output(struct dcesrv_connection *dce_conn,
if (rep->data.length == 0) {
/* we're done with this section of the call */
DLIST_REMOVE(call->replies, rep);
} else {
status = STATUS_BUFFER_OVERFLOW;
}
if (call->replies == NULL) {
@@ -938,7 +935,7 @@ NTSTATUS dcesrv_output(struct dcesrv_connection *dce_conn,
talloc_free(call);
}
return status;
return NT_STATUS_OK;
}