1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-06-06 13:00:58 +03:00

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>
This commit is contained in:
Till Wimmer 2019-01-29 13:03:35 +01:00 committed by Andreas Schneider
parent d27b817acc
commit 04c97c0eaf

View File

@ -684,7 +684,7 @@ int ssh_handle_packets_termination(ssh_session session,
int ret = SSH_OK; int ret = SSH_OK;
/* If a timeout has been provided, use it */ /* If a timeout has been provided, use it */
if (timeout > 0) { if (timeout >= 0) {
timeout_ms = timeout; timeout_ms = timeout;
} else { } else {
if (ssh_is_blocking(session)) { if (ssh_is_blocking(session)) {