Using the scheme of the original requested URL is wrong; the fact that
we're going to use our proxy to access an external https server does *not*
mean we connect to the proxy using SSL.
---
libproxy/proxy.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libproxy/proxy.c b/libproxy/proxy.c
index 16953bb..adb8282 100644
--- a/libproxy/proxy.c
+++ b/libproxy/proxy.c
@@ -83,10 +83,10 @@ static char **extract_result(const char *str, const char
*scheme)
}
if (strncmp(str, "PROXY ", 6) == 0) {
- int len = strlen(scheme) + strlen(str + 6) + 4;
+ int len = strlen(str + 6) + 8;
result[0] = malloc(len);
if (result[0] != NULL)
- sprintf(result[0], "%s://%s", scheme, str + 6);
+ sprintf(result[0], "http://%s", str + 6);
return result;
}
--
1.7.3.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman