Fixed build on MSVC.

This commit is contained in:
Roman Arutyunyan 2016-06-20 15:11:50 +03:00
parent 4c03c80e12
commit 9810fd06cb
2 changed files with 2 additions and 2 deletions

View File

@ -581,7 +581,7 @@ ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text,
return rc;
}
ngx_inet_set_port(addr->sockaddr, port);
ngx_inet_set_port(addr->sockaddr, (in_port_t) port);
return NGX_OK;
}

View File

@ -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;