diff src/mail/ngx_mail_auth_http_module.c @ 4227:4af8ea9c3a86

Fixed port range checking.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 25 Oct 2011 13:48:43 +0000
parents dd1570b6f237
children d620f497c50f
line wrap: on
line diff
--- 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_m
             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\"",