From 59cc0234e5be31d40aa91951984e8e00ca54f0ec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 25 May 2017 13:01:44 +0200 Subject: [PATCH] ssh: fix 'left' may be used uninitialized follow-up to f31760e63b4e Reported-by: Michael Kaufmann Bug: https://github.com/curl/curl/pull/1495#issuecomment-303982793 --- lib/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssh.c b/lib/ssh.c index 3670c750a..00aeca978 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -2824,7 +2824,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn, while((sshc->state != SSH_STOP) && !result) { bool block; - time_t left; + time_t left = 1000; struct timeval now = Curl_tvnow(); result = ssh_statemach_act(conn, &block);