mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +08:00
Removed a surplus condition from ngx_parse_inet6_url().
No functional changes, since the condition was always true.
This commit is contained in:
parent
66be8c6608
commit
41d512c069
@ -843,8 +843,6 @@ ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u)
|
|||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last - p) {
|
|
||||||
|
|
||||||
port = p + 1;
|
port = p + 1;
|
||||||
|
|
||||||
uri = ngx_strlchr(port, last, '/');
|
uri = ngx_strlchr(port, last, '/');
|
||||||
@ -889,7 +887,6 @@ ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u)
|
|||||||
u->port = u->default_port;
|
u->port = u->default_port;
|
||||||
sin6->sin6_port = htons(u->default_port);
|
sin6->sin6_port = htons(u->default_port);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
len = p - host;
|
len = p - host;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user