diff src/imap/ngx_imap_handler.c @ 1111:b0fc4af1f196

close connection for too long commands
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Feb 2007 13:30:19 +0000
parents 109e8c7d7cc1
children
line wrap: on
line diff
--- a/src/imap/ngx_imap_handler.c
+++ b/src/imap/ngx_imap_handler.c
@@ -1253,6 +1253,8 @@ ngx_imap_read_command(ngx_imap_session_t
         ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
                       "client sent too long command \"%V\"", &l);
 
+        s->quit = 1;
+
         return NGX_IMAP_PARSE_INVALID_COMMAND;
     }