aboutsummaryrefslogtreecommitdiff
path: root/src/connector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/connector.c')
-rw-r--r--src/connector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connector.c b/src/connector.c
index ac29635e..407aa522 100644
--- a/src/connector.c
+++ b/src/connector.c
@@ -372,7 +372,8 @@ static int ssh_connector_fd_cb(ssh_poll_handle p,
ssh_connector_except(connector, fd);
} else if((revents & (POLLIN|POLLHUP)) && fd == connector->in_fd) {
ssh_connector_fd_in_cb(connector);
- } else if((revents & POLLOUT) && fd == connector->out_fd) {
+ } else if(((revents & POLLOUT) || (revents & POLLHUP)) &&
+ fd == connector->out_fd) {
ssh_connector_fd_out_cb(connector);
}
ssh_connector_reset_pollevents(connector);