diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-04 12:02:38 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-04 12:05:00 +0200 |
commit | 74330085ecad1d7ab686f5cc421fdc66022f0da7 (patch) | |
tree | 2bfc41eefe3185c1b999e39fde0b461de064c366 /lib | |
parent | 8def5cb352fbc79c112227375100361124d5ba7a (diff) | |
download | samba-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.c | 2 |
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; } |