commit - e728bd2e1a5bcf69596b8c2a305cd6decbeaf42a
commit + a2cdc08c396d6ba3906ffb9478ce2ac52257ae93
blob - c1bc4c23540ff13e160c5ad7c07b1f732d2719ed
blob + 8f343ea418814102b3a0d2f02167860f33031c02
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
#include "portab.h"
#include "io.h"
-static char UNUSED id[] = "$Id: conn.c,v 1.171 2005/08/27 23:33:11 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.172 2005/08/27 23:42:23 fw Exp $";
#include "imp.h"
#include <assert.h>
return false;
}
+ if (len < 3) { /* request was empty (only '\r\n') */
+ array_trunc(&My_Connections[Idx].rbuf);
+ break;
+ }
#ifdef ZLIB
/* remember if stream is already compressed */
old_z = My_Connections[Idx].options & CONN_ZIP;