Mercurial > hg > nginx
changeset 1111:b0fc4af1f196
close connection for too long commands
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Feb 2007 13:30:19 +0000 |
parents | 82da2c898923 |
children | 3dcc3041b5bc |
files | src/imap/ngx_imap_handler.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/ngx_imap_handler.c Thu Feb 15 10:02:34 2007 +0000 +++ b/src/imap/ngx_imap_handler.c Thu Feb 15 13:30:19 2007 +0000 @@ -1253,6 +1253,8 @@ 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; }