aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 83436dc2..02e48d0c 100644
--- a/src/session.c
+++ b/src/session.c
@@ -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)