mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
session: ssh_handle_packets_termination() SSH_AGAIN bug fix
ssh_handle_packets_termination() must not return SSH_OK when exiting due to a timeout while the termination function still returns 1. Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
2f674aeec1
commit
cdf193d8b5
@@ -547,6 +547,7 @@ int ssh_handle_packets_termination(ssh_session session,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ssh_timeout_elapsed(&ts,timeout)) {
|
if (ssh_timeout_elapsed(&ts,timeout)) {
|
||||||
|
ret = fct(user) ? SSH_OK : SSH_AGAIN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user