1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

ssh: fix 'left' may be used uninitialized

follow-up to f31760e63b

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/pull/1495#issuecomment-303982793
This commit is contained in:
Daniel Stenberg 2017-05-25 13:01:44 +02:00
parent 8ab22a7453
commit 59cc0234e5

View File

@ -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);