Mercurial > hg > nginx
comparison src/mail/ngx_mail_auth_http_module.c @ 4353:710e35d17c28 stable-1.0
Merge of r4227, r4228:
Fixed range checking for the "somaxconn" sysctl. Fixed port range checking.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Dec 2011 13:06:45 +0000 |
parents | dd1570b6f237 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4352:413b822f1efa | 4353:710e35d17c28 |
---|---|
781 } | 781 } |
782 | 782 |
783 sin->sin_family = AF_INET; | 783 sin->sin_family = AF_INET; |
784 | 784 |
785 port = ngx_atoi(ctx->port.data, ctx->port.len); | 785 port = ngx_atoi(ctx->port.data, ctx->port.len); |
786 if (port == NGX_ERROR || port < 1 || port > 65536) { | 786 if (port == NGX_ERROR || port < 1 || port > 65535) { |
787 ngx_log_error(NGX_LOG_ERR, s->connection->log, 0, | 787 ngx_log_error(NGX_LOG_ERR, s->connection->log, 0, |
788 "auth http server %V sent invalid server " | 788 "auth http server %V sent invalid server " |
789 "port:\"%V\"", | 789 "port:\"%V\"", |
790 ctx->peer.name, &ctx->port); | 790 ctx->peer.name, &ctx->port); |
791 ngx_destroy_pool(ctx->pool); | 791 ngx_destroy_pool(ctx->pool); |