commit 31f1242609ac4863d681df57503c744af54d90df
parent ed39c0deb6fd8f3e779486863c1c8bda5c22fce7
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Fri, 15 Feb 2019 16:48:23 +0100
Remove pedantic check.
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1250,15 +1250,22 @@ body_compress (void **buf,
cbuf_size = compressBound (*buf_size);
cbuf = malloc (cbuf_size);
if (NULL == cbuf)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Could not allocate the compression buffer\n");
return MHD_NO;
+ }
+
ret = compress (cbuf,
&cbuf_size,
(const Bytef *) *buf,
*buf_size);
- if ( (Z_OK != ret) ||
- (cbuf_size >= *buf_size) )
+
+ if (Z_OK != ret)
{
/* compression failed */
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Compression failed\n");
free (cbuf);
return MHD_NO;
}