aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitlbee.c b/bitlbee.c
index ef64a753..2eecf982 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -164,7 +164,15 @@ gboolean bitlbee_io_current_client_read( GIOChannel *source, GIOCondition condit
irc_free( irc );
return FALSE;
}
-
+
+ /* Very naughty, go read the RFCs! >:) */
+ if( strlen( irc->readbuffer ) > 1024 )
+ {
+ log_message( LOGLVL_ERROR, "Maximum line length exceeded." );
+ irc_free( irc );
+ return FALSE;
+ }
+
return TRUE;
}