]> git.kaiwu.me - nginx.git/commitdiff
close connection for too long commands
authorIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 13:30:19 +0000 (13:30 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 13:30:19 +0000 (13:30 +0000)
src/imap/ngx_imap_handler.c

index dad0994da7b367f1461275a210ac9d294ec3ee31..a32b107829b7d2b0f723390e0a450c40443778cc 100644 (file)
@@ -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;
     }