diff options
Diffstat (limited to 'bitlbee.c')
-rw-r--r-- | bitlbee.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; } |