mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
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
This commit is contained in:
parent
8ab22a7453
commit
59cc0234e5
@ -2824,7 +2824,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
|
|||||||
|
|
||||||
while((sshc->state != SSH_STOP) && !result) {
|
while((sshc->state != SSH_STOP) && !result) {
|
||||||
bool block;
|
bool block;
|
||||||
time_t left;
|
time_t left = 1000;
|
||||||
struct timeval now = Curl_tvnow();
|
struct timeval now = Curl_tvnow();
|
||||||
|
|
||||||
result = ssh_statemach_act(conn, &block);
|
result = ssh_statemach_act(conn, &block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user