summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-04 12:02:38 +0200
committerVolker Lendecke <vl@samba.org>2009-06-04 12:05:00 +0200
commit74330085ecad1d7ab686f5cc421fdc66022f0da7 (patch)
tree2bfc41eefe3185c1b999e39fde0b461de064c366 /lib
parent8def5cb352fbc79c112227375100361124d5ba7a (diff)
downloadsamba-74330085ecad1d7ab686f5cc421fdc66022f0da7.tar.gz
samba-74330085ecad1d7ab686f5cc421fdc66022f0da7.tar.bz2
samba-74330085ecad1d7ab686f5cc421fdc66022f0da7.zip
Only err on readability if writev_send was explicitly asked to do so
A socket might be readable for other reasons
Diffstat (limited to 'lib')
-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 d88edb177a..a505fcf465 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -425,7 +425,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
to_write = 0;
- if (flags & TEVENT_FD_READ) {
+ if ((state->flags & TEVENT_FD_READ) && (flags & TEVENT_FD_READ)) {
tevent_req_error(req, EPIPE);
return;
}