mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
poll: Fix poll input events.
bug#38
This commit is contained in:
@@ -421,7 +421,7 @@ int ssh_handle_packets(ssh_session session, int timeout) {
|
||||
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);
|
||||
ssh_poll_add_events(spoll_in, POLLIN);
|
||||
ctx=ssh_poll_get_ctx(spoll_in);
|
||||
if(ctx==NULL){
|
||||
ctx=ssh_poll_get_default_ctx(session);
|
||||
|
||||
Reference in New Issue
Block a user