Re: [PATCH] MINOR: lua: fix crash when using bogus mode in register_service()

2017-12-22 Thread Willy Tarreau
On Fri, Dec 22, 2017 at 12:50:52PM +0100, Thierry Fournier wrote: > Hi, thanks for the patch. > > Willy, can you apply it ? Now applied, thank you! willy

Re: [PATCH] MINOR: lua: fix crash when using bogus mode in register_service()

2017-12-22 Thread Thierry Fournier
> On 22 Dec 2017, at 12:50, Thierry Fournier > wrote: > > Hi, thanks for the patch. > > Willy, can you apply it ? PS: This patch must be backported on 1.6, 1.7 and 1.8. Thierry. > > Thierry > >> On 21 Dec 2017, at 14:40, Eric Salama wrote: >> >> HAProxy crashes when one use a bogus mo

Re: [PATCH] MINOR: lua: fix crash when using bogus mode in register_service()

2017-12-22 Thread Thierry Fournier
Hi, thanks for the patch. Willy, can you apply it ? Thierry > On 21 Dec 2017, at 14:40, Eric Salama 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 me

[PATCH] MINOR: lua: fix crash when using bogus mode in register_service()

2017-12-21 Thread Eric Salama
ua: function f() end core.register_service("lua_svc", "bogus_mode", f); The fix is attached. >From ad97c5d05a1cf06bca1a3e99a33d55c51035f6b5 Mon Sep 17 00:00:00 2001 From: Eric Salama Date: Thu, 21 Dec 2017 14:30:07 +0100 Subject: [PATCH] MINOR: lua: fix crash when using bogus mode in regist