Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Alloc vmods to bail out of ->init, now that we have mechanism for
Browse files Browse the repository at this point in the history
doing the right thing during fini.

Patch by: Martin
  • Loading branch information
bsdphk committed Jun 11, 2015
1 parent 48b09e9 commit 47028c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/libvcc/vcc_vmod.c
Expand Up @@ -199,7 +199,8 @@ vcc_ParseImport(struct vcc *tl)
if (ifp == NULL)
ifp = New_IniFin(tl);
VSB_printf(ifp->ini,
"\t%s(&vmod_priv_%.*s, &VCL_conf);",
"\tif (%s(&vmod_priv_%.*s, &VCL_conf))\n"
"\t\treturn(1);",
p, PF(mod));
} else {
sym = VCC_AddSymbolStr(tl, p, SYM_FUNC);
Expand Down

0 comments on commit 47028c7

Please sign in to comment.