mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-06-05 01:42:10 +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:
parent
d27b817acc
commit
04c97c0eaf
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user