mirror of
https://github.com/mirror/wget.git
synced 2025-03-27 04:20:31 +08:00
* src/retr.c (fd_read_body): Check timer before accessing (Coverity #600494)
This commit is contained in:
parent
c65bddc086
commit
9934e228ac
@ -559,10 +559,12 @@ fd_read_body (const char *downloaded_filename, int fd, FILE *out, wgint toread,
|
|||||||
if (progress)
|
if (progress)
|
||||||
progress_finish (progress, ptimer_read (timer));
|
progress_finish (progress, ptimer_read (timer));
|
||||||
|
|
||||||
if (elapsed)
|
|
||||||
*elapsed = ptimer_read (timer);
|
|
||||||
if (timer)
|
if (timer)
|
||||||
ptimer_destroy (timer);
|
{
|
||||||
|
if (elapsed)
|
||||||
|
*elapsed = ptimer_read (timer);
|
||||||
|
ptimer_destroy (timer);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
#ifdef HAVE_LIBZ
|
||||||
if (gzbuf != NULL)
|
if (gzbuf != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user