diff src/mail/ngx_mail_auth_http_module.c @ 6597:0a820872dd4c

Fixed build on MSVC.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 20 Jun 2016 15:11:50 +0300
parents b3b7e33083ac
children bcb107bb89cd
line wrap: on
line diff
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -809,7 +809,7 @@ ngx_mail_auth_http_process_headers(ngx_m
                 return;
             }
 
-            ngx_inet_set_port(peer->sockaddr, port);
+            ngx_inet_set_port(peer->sockaddr, (in_port_t) port);
 
             len = ctx->addr.len + 1 + ctx->port.len;