Mercurial > hg > nginx-mail
diff src/imap/ngx_imap_auth_http_module.c @ 286:5bef04fc3fd5 NGINX_0_5_13
nginx 0.5.13
*) Feature: the COPY and MOVE methods.
*) Bugfix: the ngx_http_realip_module set garbage for requests passed
via keep-alive connection.
*) Bugfix: nginx did not work on big-endian 64-bit Linux.
Thanks to Andrei Nigmatulin.
*) Bugfix: now when IMAP/POP3 proxy receives too long command it closes
the connection right away, but not after timeout.
*) Bugfix: if the "epoll" method was used and a client closed a
connection prematurely, then nginx closed the connection after a
send timeout only.
*) Bugfix: nginx could not be built on platforms different from i386,
amd64, sparc and ppc; bug appeared in 0.5.8.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 19 Feb 2007 00:00:00 +0300 |
parents | 251bcd11a5b8 |
children |
line wrap: on
line diff
--- a/src/imap/ngx_imap_auth_http_module.c +++ b/src/imap/ngx_imap_auth_http_module.c @@ -477,8 +477,10 @@ ngx_imap_auth_http_process_headers(ngx_i len = ctx->header_name_end - ctx->header_name_start; if (len == sizeof("Auth-Status") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-Status", - sizeof("Auth-Status") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-Status", + sizeof("Auth-Status") - 1) + == 0) { len = ctx->header_end - ctx->header_start; @@ -539,8 +541,10 @@ ngx_imap_auth_http_process_headers(ngx_i } if (len == sizeof("Auth-Server") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-Server", - sizeof("Auth-Server") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-Server", + sizeof("Auth-Server") - 1) + == 0) { ctx->addr.len = ctx->header_end - ctx->header_start; ctx->addr.data = ctx->header_start; @@ -549,8 +553,10 @@ ngx_imap_auth_http_process_headers(ngx_i } if (len == sizeof("Auth-Port") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-Port", - sizeof("Auth-Port") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-Port", + sizeof("Auth-Port") - 1) + == 0) { ctx->port.len = ctx->header_end - ctx->header_start; ctx->port.data = ctx->header_start; @@ -559,8 +565,10 @@ ngx_imap_auth_http_process_headers(ngx_i } if (len == sizeof("Auth-User") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-User", - sizeof("Auth-User") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-User", + sizeof("Auth-User") - 1) + == 0) { s->login.len = ctx->header_end - ctx->header_start; @@ -578,8 +586,10 @@ ngx_imap_auth_http_process_headers(ngx_i } if (len == sizeof("Auth-Pass") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-Pass", - sizeof("Auth-Pass") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-Pass", + sizeof("Auth-Pass") - 1) + == 0) { s->passwd.len = ctx->header_end - ctx->header_start; @@ -597,8 +607,10 @@ ngx_imap_auth_http_process_headers(ngx_i } if (len == sizeof("Auth-Wait") - 1 - && ngx_strncasecmp(ctx->header_name_start, "Auth-Wait", - sizeof("Auth-Wait") - 1) == 0) + && ngx_strncasecmp(ctx->header_name_start, + (u_char *) "Auth-Wait", + sizeof("Auth-Wait") - 1) + == 0) { n = ngx_atoi(ctx->header_start, ctx->header_end - ctx->header_start);