* src/warc.c (warc_write_block_from_file): Check for write error (Coverity #1419654)

This commit is contained in:
Tim Rühsen 2020-02-21 14:41:40 +01:00
parent 4e519f5a80
commit 365c00a4a2

View File

@ -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. */