1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

poll: return error on poll() when pollset is empty

This commit is contained in:
Aris Adamantiadis
2013-02-11 21:35:50 +01:00
parent e471aa4e0b
commit 222a0d78ca

View File

@@ -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)