aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-02-05 12:34:35 +0100
committermilo <milo@r0ot.me>2011-02-10 14:37:34 +0100
commit32e23a25da4e7d23bdede1cee4cadc6c80306c23 (patch)
treedba049975dd22c05baa151195c98f9362e6c5c8f /src
parent3eaf25d9893822e021642d68bfcd6143571800d8 (diff)
downloadlibssh-32e23a25da4e7d23bdede1cee4cadc6c80306c23.tar.gz
libssh-32e23a25da4e7d23bdede1cee4cadc6c80306c23.tar.xz
libssh-32e23a25da4e7d23bdede1cee4cadc6c80306c23.zip
Reverse commit 076dfb82 for the server side
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index d279142a..ab7cdff9 100644
--- a/src/session.c
+++ b/src/session.c
@@ -395,6 +395,8 @@ int ssh_handle_packets(ssh_session session, int timeout) {
enter_function();
spoll_in=ssh_socket_get_poll_handle_in(session->socket);
spoll_out=ssh_socket_get_poll_handle_out(session->socket);
+ if(session->server)
+ ssh_poll_add_events(spoll_in, POLLIN | POLLERR);
ctx=ssh_poll_get_ctx(spoll_in);
if(ctx==NULL){
ctx=ssh_poll_get_default_ctx(session);