From a309db1126d08ecd177492a0687b98be1c8ba0cf Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 4 Dec 2005 04:18:07 +0100 Subject: Terribly stupid bug in the DoS fix. --- bitlbee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitlbee.c') diff --git a/bitlbee.c b/bitlbee.c index 2eecf982..9f79d544 100644 --- a/bitlbee.c +++ b/bitlbee.c @@ -166,7 +166,7 @@ gboolean bitlbee_io_current_client_read( GIOChannel *source, GIOCondition condit } /* Very naughty, go read the RFCs! >:) */ - if( strlen( irc->readbuffer ) > 1024 ) + if( irc->readbuffer && ( strlen( irc->readbuffer ) > 1024 ) ) { log_message( LOGLVL_ERROR, "Maximum line length exceeded." ); irc_free( irc ); -- cgit v1.2.3