diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-21 17:34:32 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-21 17:34:32 +0300 |
commit | 2bc44ea01a66416d9fc1747e80b4190e080b7268 (patch) | |
tree | 68cbc33bfd120ec94a161bedd353790c2c62e4df /src | |
parent | e10385efe5b98b18cc19fa5c3707780162691b6e (diff) |
fix upstream port, introduced in r2513
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_inet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 7ccf6644d..497d84a3c 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -704,8 +704,7 @@ ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u) /* AF_INET only */ - sin = (struct sockaddr_in *) &u->sockaddr; - port = sin->sin_port; + port = htons(u->port); in_addr = inet_addr((char *) host); |