mirror of
https://github.com/curl/curl.git
synced 2026-07-16 00:27:18 +03:00
libssh2: avoid risking using an uninitialized local struct field
Reported-by: Joshua Rogers Closes #19043
This commit is contained in:
parent
6d0fcdf2ed
commit
f1828b5404
1 changed files with 1 additions and 0 deletions
|
|
@ -1428,6 +1428,7 @@ sftp_download_stat(struct Curl_easy *data,
|
|||
data->req.size = -1;
|
||||
data->req.maxdownload = -1;
|
||||
Curl_pgrsSetDownloadSize(data, -1);
|
||||
attrs.filesize = 0; /* might be uninitialized but will be read below */
|
||||
}
|
||||
else {
|
||||
curl_off_t size = attrs.filesize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue