aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTill Wimmer <g4-lisz@tonarchiv.ch>2019-01-29 13:03:35 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-30 09:24:29 +0100
commit04c97c0eafb8885a77bf6c075ee9739ffa329770 (patch)
treee97872de13233589d5b11281dcd8c40e628b2958 /src
parentd27b817acc45e07cf89adfacfbfa274b49371485 (diff)
downloadlibssh-04c97c0eafb8885a77bf6c075ee9739ffa329770.tar.gz
libssh-04c97c0eafb8885a77bf6c075ee9739ffa329770.tar.xz
libssh-04c97c0eafb8885a77bf6c075ee9739ffa329770.zip
session: Repects timeout=0 for packets on blocking sessions
Signed-off-by: Till Wimmer <g4-lisz@tonarchiv.ch> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
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)) {