diff options
author | Ruslan Ermilov <ru@nginx.com> | 2011-10-25 13:48:43 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2011-10-25 13:48:43 +0000 |
commit | f12d6ceb65626b633cd950b06185d125246d96d9 (patch) | |
tree | 8ffcaef6f767ad308a21f54511d1366cb8f8361c /src/mail/ngx_mail_auth_http_module.c | |
parent | c5762451a91808c2561963a3d73b904767341307 (diff) | |
download | nginx-f12d6ceb65626b633cd950b06185d125246d96d9.tar.gz nginx-f12d6ceb65626b633cd950b06185d125246d96d9.zip |
Fixed port range checking.
Diffstat (limited to 'src/mail/ngx_mail_auth_http_module.c')
-rw-r--r-- | src/mail/ngx_mail_auth_http_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c index d54a392ac..c82332690 100644 --- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c @@ -783,7 +783,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s, sin->sin_family = AF_INET; port = ngx_atoi(ctx->port.data, ctx->port.len); - if (port == NGX_ERROR || port < 1 || port > 65536) { + if (port == NGX_ERROR || port < 1 || port > 65535) { ngx_log_error(NGX_LOG_ERR, s->connection->log, 0, "auth http server %V sent invalid server " "port:\"%V\"", |