aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index af9201f8..3b151bf7 100644
--- a/src/session.c
+++ b/src/session.c
@@ -684,7 +684,7 @@ int ssh_handle_packets_termination(ssh_session session,
int ret = SSH_OK;
/* If a timeout has been provided, use it */
- if (timeout > 0) {
+ if (timeout >= 0) {
timeout_ms = timeout;
} else {
if (ssh_is_blocking(session)) {