[master] 8ef6c17 Don't skip in the argument string, HEADER is a simple token.
Poul-Henning Kamp
phk at varnish-cache.org
Mon Mar 14 11:47:58 CET 2011
commit 8ef6c17500e916b52adda44f785ebef4bfe0e68a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Mar 14 10:47:34 2011 +0000
Don't skip in the argument string, HEADER is a simple token.
diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c
index 952c2a7..9261963 100644
--- a/lib/libvcl/vcc_expr.c
+++ b/lib/libvcl/vcc_expr.c
@@ -601,7 +601,8 @@ vcc_Eval_Func(struct vcc *tl, struct expr **e, const struct symbol *sym)
return;
}
e1 = vcc_mk_expr(VOID, "%s, \"%s\"", v->http, v->hdr);
- p += strlen(p) + 1;
+ if (*p != '\0')
+ SkipToken(tl, ',');
} else {
vcc_expr0(tl, &e1, fmt);
ERRCHK(tl);
More information about the varnish-commit
mailing list