mirror of
https://github.com/mirror/wget.git
synced 2025-02-07 18:20:14 +08:00
* src/warc.c (warc_write_block_from_file): Check for write error (Coverity #1419654)
This commit is contained in:
parent
4e519f5a80
commit
365c00a4a2
@ -316,7 +316,11 @@ warc_write_block_from_file (FILE *data_in)
|
||||
static bool
|
||||
warc_write_end_record (void)
|
||||
{
|
||||
warc_write_buffer ("\r\n\r\n", 4);
|
||||
if (warc_write_buffer ("\r\n\r\n", 4) != 4)
|
||||
{
|
||||
warc_write_ok = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
/* We start a new gzip stream for each record. */
|
||||
|
Loading…
Reference in New Issue
Block a user