1
0
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:
Andreas Schneider
2011-02-05 11:15:45 +01:00
parent 4b07157fc6
commit 8f850585dd

View File

@@ -416,7 +416,7 @@ int ssh_handle_packets(ssh_session session, int timeout) {
*/
int ssh_handle_packets_termination(ssh_session session, int timeout,
ssh_termination_function fct, void *user){
int ret;
int ret = SSH_ERROR;
while(!fct(user)){
ret = ssh_handle_packets(session, timeout);
if(ret == SSH_ERROR)