[master] 7cd19157b Give the dedicated type to VMOD object instances

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Jul 2 12:49:08 UTC 2020


commit 7cd19157b858d7a9b17d98b591b4e640ddaa24c1
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Nov 29 17:33:03 2019 +0100

    Give the dedicated type to VMOD object instances

diff --git a/lib/libvcc/vcc_vmod.c b/lib/libvcc/vcc_vmod.c
index 0fc43bab2..be31db8cd 100644
--- a/lib/libvcc/vcc_vmod.c
+++ b/lib/libvcc/vcc_vmod.c
@@ -497,6 +497,10 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
 	    XREF_NONE);
 	ERRCHK(tl);
 	AN(osym);
+
+	/* Scratch the generic INSTANCE type */
+	isym->type = osym->type;
+
 	CAST_OBJ_NOTNULL(vv, osym->eval_priv, VJSN_VAL_MAGIC);
 	// vv = object name
 


More information about the varnish-commit mailing list