BB#106: fix CONNECT requsts with IPv6 literal addresses as host.
Use extract_url instead of the old extract_ssl_url:
extract_url is generic and handles ipv6 literal addresses correctly.
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 9f43cfd488
)
This commit is contained in:
parent
08c44a36ba
commit
578f409a03
@ -424,7 +424,7 @@ BAD_REQUEST_ERROR:
|
||||
goto fail;
|
||||
}
|
||||
} else if (strcmp (request->method, "CONNECT") == 0) {
|
||||
if (extract_ssl_url (url, request) < 0) {
|
||||
if (extract_url (url, HTTP_PORT_SSL, request) < 0) {
|
||||
indicate_http_error (connptr, 400, "Bad Request",
|
||||
"detail", "Could not parse URL",
|
||||
"url", url, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user