diff options
Diffstat (limited to 'src/tbf.c')
-rw-r--r-- | src/tbf.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -335,10 +335,13 @@ tbf_open_safe(const char *params) | |||
335 | } | 335 | } |
336 | 336 | ||
337 | int | 337 | int |
338 | tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf) | 338 | tbf_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 | ||
344 | void | 347 | void |