about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2004-04-25 13:55:34 +0000
committerAlexander Barton <alex@barton.de>2004-04-25 13:55:34 +0000
commit292c7bd4c036fd73c8de074f87239aa8e4fdcb2b (patch)
tree0fecb25e69d22ba2b1fd54c593b4c85e4f209a83 /src
parent558fe6b453a08c8924060b02d66f32a3683cc821 (diff)
downloadngircd-292c7bd4c036fd73c8de074f87239aa8e4fdcb2b.tar.gz
ngircd-292c7bd4c036fd73c8de074f87239aa8e4fdcb2b.zip
Better logging of decompression errors returned by zlib.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn-zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn-zip.c b/src/ngircd/conn-zip.c
index e1a2d415..be65e969 100644
--- a/src/ngircd/conn-zip.c
+++ b/src/ngircd/conn-zip.c
@@ -19,7 +19,7 @@
 
 #ifdef ZLIB
 
-static char UNUSED id[] = "$Id: conn-zip.c,v 1.4 2003/12/26 15:55:07 alex Exp $";
+static char UNUSED id[] = "$Id: conn-zip.c,v 1.5 2004/04/25 13:55:36 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -161,7 +161,7 @@ Unzip_Buffer( CONN_ID Idx )
 	result = inflate( in, Z_SYNC_FLUSH );
 	if( result != Z_OK )
 	{
-		Log( LOG_ALERT, "Decompression error: code %d (ni=%d, ai=%d, no=%d, ao=%d)!?", result, in->next_in, in->avail_in, in->next_out, in->avail_out );
+		Log( LOG_ALERT, "Decompression error: %s (code=%d, ni=%d, ai=%d, no=%d, ao=%d)!?", in->msg, result, in->next_in, in->avail_in, in->next_out, in->avail_out );
 		Conn_Close( Idx, "Decompression error!", NULL, FALSE );
 		return FALSE;
 	}