aboutsummaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-12 21:30:38 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-12 21:37:29 +0200
commitc5bf241c6039927e150f8451164647517168ee1a (patch)
treefe0d80a8883bca10fcf759c4cdf8ae52e99235fb /ssh
parente52b2e629085269b96b1185c72ba055d991e93f7 (diff)
sshnc: Fix bug where sshnc_maybe_recv() would block
Diffstat (limited to 'ssh')
-rw-r--r--ssh/sshnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/sshnc.c b/ssh/sshnc.c
index 7d1ad3e..872be2a 100644
--- a/ssh/sshnc.c
+++ b/ssh/sshnc.c
@@ -330,7 +330,7 @@ enum sshnc_retval sshnc_maybe_recv(
if (client->is_closed) return SSHNC_EOF;
- const int ret = ssh_event_dopoll(client->event, -1);
+ const int ret = ssh_event_dopoll(client->event, 0);
if (ret == SSH_ERROR) {
return SSHNC_ERR_POLL;
}