[BB#91] Fix upstream proxy support.
authorMichael Adam <obnox@samba.org>
Tue, 24 Aug 2010 20:47:35 +0000 (22:47 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Aug 2010 20:47:35 +0000 (22:47 +0200)
Patch by Jordi Mallach.

src/conf.c

index 269941ed852a2008eb83e188d01aa558d3b5e418..b16b8e9eade8cd62f13ef9626070c672a298171f 100644 (file)
@@ -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);