Commit 59cc0234 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ssh: fix 'left' may be used uninitialized

follow-up to f31760e6

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/pull/1495#issuecomment-303982793
parent 8ab22a74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);