summaryrefslogtreecommitdiffstats
path: root/libssh/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/socket.c')
-rw-r--r--libssh/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/socket.c b/libssh/socket.c
index c8fd00fb..817128c7 100644
--- a/libssh/socket.c
+++ b/libssh/socket.c
@@ -492,6 +492,7 @@ int ssh_socket_poll(struct socket *s, int *writeable, int *except) {
fd->fd = s->fd;
fd->events = 0;
+ fd->revents = 0;
if (!s->data_to_read) {
fd->events |= POLLIN;