diff --git a/src/hlua.c b/src/hlua.c index 9578923be..4dfee0ea0 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -11989,7 +11989,9 @@ static int hlua_filter_new(struct stream *s, struct filter *filter) filter->ctx = flt_ctx; break; case HLUA_E_ERRMSG: + hlua_lock(s->hlua); SEND_ERR(s->be, "Lua filter '%s' : %s.\n", conf->reg->name, hlua_tostring_safe(s->hlua->T, -1)); + hlua_unlock(s->hlua); ret = -1; goto end; case HLUA_E_ETMOUT: