mirror of
https://github.com/curl/curl.git
synced 2026-07-24 05:57:17 +03:00
Rene Rebe fixed a -# crash when more data than expected was retrieved.
This commit is contained in:
parent
40ab20a252
commit
7012a4a291
3 changed files with 10 additions and 1 deletions
|
|
@ -2610,6 +2610,10 @@ static int myprogress (void *clientp,
|
|||
curl_off_t point = (curl_off_t)dlnow + (curl_off_t)ulnow +
|
||||
bar->initial_size; /* we've come this far */
|
||||
|
||||
if(point > total)
|
||||
/* we have got more than the expected total! */
|
||||
total = point;
|
||||
|
||||
bar->calls++; /* simply count invokes */
|
||||
|
||||
if(total < 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue