[experimental-ims] f80c6e3 Remember to pass req also when we call user defined functions

Poul-Henning Kamp phk at FreeBSD.org
Thu Dec 18 10:27:48 CET 2014


commit f80c6e358422d0f3534340abca48cfb7f05b398a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jun 14 12:28:13 2012 +0000

    Remember to pass req also when we call user defined functions

diff --git a/lib/libvcl/vcc_action.c b/lib/libvcl/vcc_action.c
index b4713e6..e725c6d 100644
--- a/lib/libvcl/vcc_action.c
+++ b/lib/libvcl/vcc_action.c
@@ -44,7 +44,7 @@ parse_call(struct vcc *tl)
 	ExpectErr(tl, ID);
 	vcc_AddCall(tl, tl->t);
 	vcc_AddRef(tl, tl->t, SYM_SUB);
-	Fb(tl, 1, "if (VGC_function_%.*s(sp))\n", PF(tl->t));
+	Fb(tl, 1, "if (VGC_function_%.*s(sp, req))\n", PF(tl->t));
 	Fb(tl, 1, "\treturn (1);\n");
 	vcc_NextToken(tl);
 	return;



More information about the varnish-commit mailing list