From 9810fd06cb3358dbc880ccfcb30a49e693623d0c Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 20 Jun 2016 15:11:50 +0300 Subject: Fixed build on MSVC. --- src/mail/ngx_mail_auth_http_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mail') diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c index 5aaff8ed8..a94434a2f 100644 --- 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_mail_session_t *s, 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; -- cgit