summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-11 14:28:35 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-11 17:33:30 +0100
commitb96aa69dffedc154de94d3f7684e952bfaff0a74 (patch)
tree105a99f303818d155ba7a936cfd7ed1172d50798 /lib/async_req
parent793247452e19794bcc6d52938411e5cf964dc46e (diff)
downloadsamba-b96aa69dffedc154de94d3f7684e952bfaff0a74.tar.gz
samba-b96aa69dffedc154de94d3f7684e952bfaff0a74.tar.bz2
samba-b96aa69dffedc154de94d3f7684e952bfaff0a74.zip
async_sock: fix truncating of the temporary iovec in writev_send/recv()
Volker: please check! metze
Diffstat (limited to 'lib/async_req')
-rw-r--r--lib/async_req/async_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index f803b9cc36..be24bae6df 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -485,7 +485,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
state->iov[0].iov_len -= written;
break;
}
- written = state->iov[0].iov_len;
+ written -= state->iov[0].iov_len;
state->iov += 1;
state->count -= 1;
}