From bb19bcd867a05a52ca95b356453a3793d0f556ab Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 15 Feb 2007 13:30:19 +0000 Subject: close connection for too long commands --- src/imap/ngx_imap_handler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/imap/ngx_imap_handler.c') diff --git a/src/imap/ngx_imap_handler.c b/src/imap/ngx_imap_handler.c index dad0994da..a32b10782 100644 --- 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 *s) 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; } -- cgit v1.2.3