diff options
-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; } |