diff options
| author | Alexander Barton <alex@barton.de> | 2002-12-02 13:56:24 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-12-02 13:56:24 +0000 |
| commit | cde9dfdb77066bb391ff397273079bf309e71ed3 (patch) | |
| tree | 297e5544b1c29ae8d5f2c197c46c41852d764679 | |
| parent | f0349f526612ea7bd0e4c0031c97b6452ad9e6f4 (diff) | |
| download | ngircd-cde9dfdb77066bb391ff397273079bf309e71ed3.tar.gz ngircd-cde9dfdb77066bb391ff397273079bf309e71ed3.zip | |
- Verhalten von Conn_RecvQ() und Conn_SendQ() bei Kompression korrigiert.
| -rw-r--r-- | src/ngircd/conn.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index ab48e850..38eb8134 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.c,v 1.101 2002/12/02 13:19:37 alex Exp $ + * $Id: conn.c,v 1.102 2002/12/02 13:56:24 alex Exp $ * * connect.h: Verwaltung aller Netz-Verbindungen ("connections") */ @@ -907,10 +907,10 @@ Conn_SendQ( CONN_ID Idx ) assert( Idx > NONE ); #ifdef USE_ZLIB - return My_Connections[Idx].zip.wdatalen; -#else - return My_Connections[Idx].wdatalen; + if( My_Connections[Idx].options & CONN_ZIP ) return My_Connections[Idx].zip.wdatalen; + else #endif + return My_Connections[Idx].wdatalen; } /* Conn_SendQ */ @@ -941,10 +941,10 @@ Conn_RecvQ( CONN_ID Idx ) assert( Idx > NONE ); #ifdef USE_ZLIB - return My_Connections[Idx].zip.rdatalen; -#else - return My_Connections[Idx].rdatalen; + if( My_Connections[Idx].options & CONN_ZIP ) return My_Connections[Idx].zip.rdatalen; + else #endif + return My_Connections[Idx].rdatalen; } /* Conn_RecvQ */ |