summaryrefslogtreecommitdiffabout
path: root/src/tbf.c
Side-by-side diff
Diffstat (limited to 'src/tbf.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/tbf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tbf.c b/src/tbf.c
index dadb9cc..3790a01 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -335,10 +335,13 @@ tbf_open_safe(const char *params)
}
int
-tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf)
+tbf_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{
- VTAILQ_INIT(&keylock_head);
- VTAILQ_INIT(&keylock_avail);
+ if (e == VCL_EVENT_LOAD) {
+ VTAILQ_INIT(&keylock_head);
+ VTAILQ_INIT(&keylock_avail);
+ }
+ return 0;
}
void

Return to:

Send suggestions and report system problems to the System administrator.