mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
Add "err_on_readability" to writev_send
A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
This commit is contained in:
@ -680,10 +680,10 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
|
||||
iov[0].iov_base = (void *)buf;
|
||||
iov[0].iov_len = talloc_get_size(buf);
|
||||
subreq = writev_send(state, state->ev, state->cli->outgoing,
|
||||
state->cli->fd, iov, 1);
|
||||
state->cli->fd, false, iov, 1);
|
||||
} else {
|
||||
subreq = writev_send(state, state->ev, state->cli->outgoing,
|
||||
state->cli->fd, iov, iov_count);
|
||||
state->cli->fd, false, iov, iov_count);
|
||||
}
|
||||
if (subreq == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Reference in New Issue
Block a user