mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
session: Fixed possible uninitialized return of ret.
This commit is contained in:
@@ -416,7 +416,7 @@ int ssh_handle_packets(ssh_session session, int timeout) {
|
|||||||
*/
|
*/
|
||||||
int ssh_handle_packets_termination(ssh_session session, int timeout,
|
int ssh_handle_packets_termination(ssh_session session, int timeout,
|
||||||
ssh_termination_function fct, void *user){
|
ssh_termination_function fct, void *user){
|
||||||
int ret;
|
int ret = SSH_ERROR;
|
||||||
while(!fct(user)){
|
while(!fct(user)){
|
||||||
ret = ssh_handle_packets(session, timeout);
|
ret = ssh_handle_packets(session, timeout);
|
||||||
if(ret == SSH_ERROR)
|
if(ret == SSH_ERROR)
|
||||||
|
|||||||
Reference in New Issue
Block a user