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) {
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) {
talloc_free(call);
}
- return status;
+ return NT_STATUS_OK;
}
size_t sendlen;
status = socket_send(sock, out, &sendlen, 0);
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_IS_ERR(status)) {
return -1;
}
return;
}
if (nread == 0) {
+ talloc_free(tmp_blob.data);
return;
}