From 3eaf270b84f4baf1b84499f005749c0406ea3892 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 27 Mar 2015 12:39:44 +0000 Subject: [PATCH] decompress_iob(): Refine the log message emitted when the iob is too small --- parsers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parsers.c b/parsers.c index 902eb826..630537a3 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.297 2014/11/12 11:59:47 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.298 2015/01/24 16:41:51 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -436,7 +436,9 @@ jb_err decompress_iob(struct client_state *csp) * This is to protect the parsing of gzipped data, * but it should(?) be valid for deflated data also. */ - log_error(LOG_LEVEL_ERROR, "Buffer too small decompressing iob"); + log_error(LOG_LEVEL_ERROR, + "Insufficient data to start decompression. Bytes in buffer: %d", + csp->iob->eod - csp->iob->cur); return JB_ERR_COMPRESS; } -- 2.39.2