aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2010-08-08 23:01:52 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-09 20:54:13 +0200
commit6d531ed0a68178d7dd6f3ed91e08bbe8b03fb6f0 (patch)
treefe7f3018aabdc2fcf412de6a9b526244140b2803 /libssh
parent06df7c1b3186bfac123377f1433fcb4bb778eb9c (diff)
downloadlibssh-6d531ed0a68178d7dd6f3ed91e08bbe8b03fb6f0.tar.gz
libssh-6d531ed0a68178d7dd6f3ed91e08bbe8b03fb6f0.tar.xz
libssh-6d531ed0a68178d7dd6f3ed91e08bbe8b03fb6f0.zip
session: Set needed poll events for handling packets.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Diffstat (limited to 'libssh')
-rw-r--r--libssh/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/session.c b/libssh/session.c
index 65175e3..06e0a25 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -361,6 +361,7 @@ 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);
+ ssh_poll_set_events(spoll_in, POLLIN | POLLERR);
ctx=ssh_poll_get_ctx(spoll_in);
if(ctx==NULL){
ctx=ssh_get_global_poll_ctx(session);