From c5bf241c6039927e150f8451164647517168ee1a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 12 Jul 2020 21:30:38 +0200 Subject: sshnc: Fix bug where sshnc_maybe_recv() would block --- ssh/sshnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2