mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
remove unused field
This commit is contained in:
parent
d0e8e5456c
commit
d67d8478a6
@ -40,7 +40,6 @@ struct ngx_mail_auth_http_ctx_s {
|
|||||||
ngx_mail_auth_http_handler_pt handler;
|
ngx_mail_auth_http_handler_pt handler;
|
||||||
|
|
||||||
ngx_uint_t state;
|
ngx_uint_t state;
|
||||||
ngx_uint_t hash; /* no needed ? */
|
|
||||||
|
|
||||||
u_char *header_name_start;
|
u_char *header_name_start;
|
||||||
u_char *header_name_end;
|
u_char *header_name_end;
|
||||||
@ -915,7 +914,6 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
ngx_mail_auth_http_ctx_t *ctx)
|
ngx_mail_auth_http_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
u_char c, ch, *p;
|
u_char c, ch, *p;
|
||||||
ngx_uint_t hash;
|
|
||||||
enum {
|
enum {
|
||||||
sw_start = 0,
|
sw_start = 0,
|
||||||
sw_name,
|
sw_name,
|
||||||
@ -927,7 +925,6 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
} state;
|
} state;
|
||||||
|
|
||||||
state = ctx->state;
|
state = ctx->state;
|
||||||
hash = ctx->hash;
|
|
||||||
|
|
||||||
for (p = ctx->response->pos; p < ctx->response->last; p++) {
|
for (p = ctx->response->pos; p < ctx->response->last; p++) {
|
||||||
ch = *p;
|
ch = *p;
|
||||||
@ -951,12 +948,10 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
|
|
||||||
c = (u_char) (ch | 0x20);
|
c = (u_char) (ch | 0x20);
|
||||||
if (c >= 'a' && c <= 'z') {
|
if (c >= 'a' && c <= 'z') {
|
||||||
hash = c;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch >= '0' && ch <= '9') {
|
if (ch >= '0' && ch <= '9') {
|
||||||
hash = ch;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -968,7 +963,6 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
case sw_name:
|
case sw_name:
|
||||||
c = (u_char) (ch | 0x20);
|
c = (u_char) (ch | 0x20);
|
||||||
if (c >= 'a' && c <= 'z') {
|
if (c >= 'a' && c <= 'z') {
|
||||||
hash += c;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -979,12 +973,10 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ch == '-') {
|
if (ch == '-') {
|
||||||
hash += ch;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch >= '0' && ch <= '9') {
|
if (ch >= '0' && ch <= '9') {
|
||||||
hash += ch;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1081,7 +1073,6 @@ ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s,
|
|||||||
|
|
||||||
ctx->response->pos = p;
|
ctx->response->pos = p;
|
||||||
ctx->state = state;
|
ctx->state = state;
|
||||||
ctx->hash = hash;
|
|
||||||
|
|
||||||
return NGX_AGAIN;
|
return NGX_AGAIN;
|
||||||
|
|
||||||
@ -1089,7 +1080,6 @@ done:
|
|||||||
|
|
||||||
ctx->response->pos = p + 1;
|
ctx->response->pos = p + 1;
|
||||||
ctx->state = sw_start;
|
ctx->state = sw_start;
|
||||||
ctx->hash = hash;
|
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user