summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-16 15:14:58 +0100
committerMichael Adam <obnox@samba.org>2013-11-16 15:25:44 +0100
commit9f43cfd4882a7af973901ccdae2b056e2ef6e943 (patch)
tree14ae6f42290b8feee966f992686d8c79d99ec966
parent98f77ef8c7f7e9d329beac1bcced5eea4fd17f19 (diff)
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>
-rw-r--r--src/reqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 4f37124..d872294 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -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);