aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poll.c b/src/poll.c
index 5a7d85d8..932c4918 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -586,7 +586,7 @@ int ssh_poll_ctx_dopoll(ssh_poll_ctx ctx, int timeout) {
int revents;
if (!ctx->polls_used)
- return 0;
+ return SSH_ERROR;
rc = ssh_poll(ctx->pollfds, ctx->polls_used, timeout);
if(rc < 0)