diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_inet.c | 2 | ||||
-rw-r--r-- | src/mail/ngx_mail_auth_http_module.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 3590ee695..c4aaf3a84 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -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; } 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; |