Mailing List Archive

[master] 7cd19157b Give the dedicated type to VMOD object instances
commit 7cd19157b858d7a9b17d98b591b4e640ddaa24c1
Author: Dridi Boukelmoune <dridi.boukelmoune@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

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit