summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-10 01:15:46 +0100
committerMichael Adam <obnox@samba.org>2009-11-10 01:17:27 +0100
commitfd879e45c81628724db66d9d90998b33b5e142e9 (patch)
tree70d6aef88fd9e2c032061942ec92d33d4223fd11 /src
parentf63c29c886228eaae82a342e0934b1a5c86e5883 (diff)
downloadtinyproxy-fd879e45c81628724db66d9d90998b33b5e142e9.tar.gz
tinyproxy-fd879e45c81628724db66d9d90998b33b5e142e9.zip
conf: fix reverspath parsing: the string in the 2nd arg is actually the inner match
this fixes bug #64, https://www.banu.com/bugzilla/show_bug.cgi?id=64 the quotes of the string were part of the revers path after parseing. Michael
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 79db458..0cd9378 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -739,8 +739,8 @@ static HANDLE_FUNC (handle_reversepath)
if (!arg1)
return -1;
- if (match[3].rm_so != -1) {
- arg2 = get_string_arg (line, &match[3]);
+ if (match[4].rm_so != -1) {
+ arg2 = get_string_arg (line, &match[4]);
if (!arg2) {
safefree (arg1);
return -1;