Hi, thanks for the patch.

Willy, can you apply it ?

Thierry

> On 21 Dec 2017, at 14:40, Eric Salama <[email protected]> wrote:
> 
> HAProxy crashes when one use a bogus mode with core.register_service().
> The 2nd argument must be "http" or "tcp", but any other value crashes HAProxy
> when it displays the error message.
> 
> To reproduce:
> 
> haproxy.cfg:
> 
> global
>     lua-load crash.lua
> 
> 
> crash.lua:
> function f() end
> core.register_service("lua_svc", "bogus_mode", f);
> 
> 
> The fix is attached.
> 
> <0001-PATCH-MINOR-lua-fix-crash-when-using-bogus-mode-in-r.patch>

Attachment: 0001-PATCH-MINOR-lua-fix-crash-when-using-bogus-mode-in-r.patch
Description: Binary data

Reply via email to