projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc95f97
)
If compressing the buffer failed, include buffer size and compression level in the...
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 8 Jul 2011 13:28:11 +0000
(13:28 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Fri, 8 Jul 2011 13:28:11 +0000
(13:28 +0000)
cgi.c
patch
|
blob
|
history
diff --git
a/cgi.c
b/cgi.c
index
55ef1e9
..
d4a1f22
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-1,4
+1,4
@@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.13
8 2011/07/08 13:27:31
fabiankeil Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.13
9 2011/07/08 13:27:56
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
@@
-1531,7
+1531,9
@@
char *compress_buffer(char *buffer, size_t *buffer_length, int compression_level
if (Z_OK != compress2((Bytef *)compressed_buffer, &new_length,
(Bytef *)buffer, *buffer_length, compression_level))
{
if (Z_OK != compress2((Bytef *)compressed_buffer, &new_length,
(Bytef *)buffer, *buffer_length, compression_level))
{
- log_error(LOG_LEVEL_ERROR, "Error in compress2()");
+ log_error(LOG_LEVEL_ERROR,
+ "compress2() failed. Buffer size: %d, compression level: %d.",
+ new_length, compression_level);
freez(compressed_buffer);
return NULL;
}
freez(compressed_buffer);
return NULL;
}