[experimental-ims] 35aede3 Don't allow "error" in vcl_init{} and vcl_fini{}, they have no request to error.

Geoff Simmons geoff at varnish-cache.org
Wed Aug 31 16:04:46 CEST 2011


commit 35aede393124b5a72ead2643f48421cf13067b24
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 30 07:07:13 2011 +0000

    Don't allow "error" in vcl_init{} and vcl_fini{}, they have no
    request to error.
    
    Fixes	#996

diff --git a/lib/libvcl/vcc_action.c b/lib/libvcl/vcc_action.c
index 0600fd0..353a40b 100644
--- a/lib/libvcl/vcc_action.c
+++ b/lib/libvcl/vcc_action.c
@@ -325,7 +325,10 @@ static struct action_table {
 	action_f		*func;
 	unsigned		bitmask;
 } action_table[] = {
-	{ "error",		parse_error },
+	{ "error",		parse_error,
+	    VCL_MET_RECV | VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_HASH |
+            VCL_MET_MISS | VCL_MET_HIT | VCL_MET_FETCH | VCL_MET_DELIVER
+	},
 
 #define VCL_RET_MAC(l, U, B)						\
 	{ #l,			parse_new_syntax },



More information about the varnish-commit mailing list