mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: hlua: missing lock in hlua_filter_new()
This is a complementary patch to 8670db7
("BUG/MAJOR: hlua: improper lock
usage with hlua_ctx_resume()") for hlua_filter_new().
Indeed, the HLUA_E_ERRMSG case still relies on the lua stack but didn't
take the lock to do so.
This should be backported up to 2.6.
This commit is contained in:
parent
4aefffc38c
commit
ecd8f3bfd7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user