summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-23 16:10:54 +0200
committerVolker Lendecke <vl@samba.org>2009-05-24 13:47:29 +0200
commita8e02b591b0c82c1f75f4f51bc683d9775f13d54 (patch)
tree25628a860b58c1dfad40028a83e2a148fcaa568f /source3/libsmb
parent1a69ba894514dd4eaba9fa015bdf930a5b620fea (diff)
downloadsamba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.tar.gz
samba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.tar.bz2
samba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.zip
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.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 12bc0a6fb3..6edfe514b8 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -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;