summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-08-24 22:47:35 +0200
committerMichael Adam <obnox@samba.org>2010-08-24 22:47:35 +0200
commitb672ca03fee5813b18354fb5ed221f345f1310e3 (patch)
tree170fc5f72a1122733f47a3d3b90828e0c135c094 /src
parent52cad36352bd6c9162744ba20c0ead8c768991e8 (diff)
downloadtinyproxy-b672ca03fee5813b18354fb5ed221f345f1310e3.tar.gz
tinyproxy-b672ca03fee5813b18354fb5ed221f345f1310e3.zip
[BB#91] Fix upstream proxy support.
Patch by Jordi Mallach.
Diffstat (limited to '')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 269941e..b16b8e9 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -1046,8 +1046,8 @@ static HANDLE_FUNC (handle_upstream)
return -1;
port = (int) get_long_arg (line, &match[7]);
- if (match[9].rm_so != -1) {
- domain = get_string_arg (line, &match[9]);
+ if (match[10].rm_so != -1) {
+ domain = get_string_arg (line, &match[10]);
if (domain) {
upstream_add (ip, port, domain, &conf->upstream_list);
safefree (domain);