aboutsummaryrefslogtreecommitdiff
path: root/src/tbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tbf.c')
-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)
335} 335}
336 336
337int 337int
338tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf) 338tbf_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
339{ 339{
340 VTAILQ_INIT(&keylock_head); 340 if (e == VCL_EVENT_LOAD) {
341 VTAILQ_INIT(&keylock_avail); 341 VTAILQ_INIT(&keylock_head);
342 VTAILQ_INIT(&keylock_avail);
343 }
344 return 0;
342} 345}
343 346
344void 347void

Return to:

Send suggestions and report system problems to the System administrator.