[PR] BUG/MEDIUM: lua: fix invalid return types in hlua_http_msg_get_body

2021-10-23 Thread PR Bot
Dear list! Author: vishnu Number of patches: 1 This is an automated relay of the Github pull request: BUG/MEDIUM: lua: fix invalid return types in hlua_http_msg_get_body Patch title(s): BUG/MEDIUM: lua: fix invalid return types in hlua_http_msg_get_body Link: https://github.com/hapro

[PATCH] CLEANUP: hlua: Remove obsolete branch in `hlua_alloc()`

2021-10-23 Thread Tim Duesterhus
This branch is no longer required, because the `!nsize` case is handled for any value of `ptr` now. see 22586524e32f14c44239063088a38ccea8abc9b7 see a5efdff93c36f75345a2a18f18bffee9b602bc7b --- src/hlua.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index ac61a317

[PATCH] DEV: coccinelle: Add realloc_leak.cocci

2021-10-23 Thread Tim Duesterhus
This coccinelle patch finds locations where the return value of `realloc()` is assigned to the pointer passed to `realloc()`. This calls will leak memory if `realloc()` returns `NULL`. --- dev/coccinelle/realloc_leak.cocci | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 dev/coccine

Re: [PATCH] BUILD/MINOR: atomics: mac arm64 build fix

2021-10-23 Thread David CARLIER
On Sat, 23 Oct 2021 at 16:50, Willy Tarreau wrote: > > Hi David, > > On Sat, Oct 23, 2021 at 02:51:59PM +0100, David CARLIER wrote: > > Hi, > > Hopefully not too late for the 2.5 release :-) > > No worries, and fixes can be merged later anyway. I have some questions > below. > > > From b9c083252bd

Re: Suggestion

2021-10-23 Thread Willy Tarreau
On Thu, Oct 21, 2021 at 11:24:22AM +0200, Steve Hand wrote: > I wasted a day yesterday with this config. This all seemed to work > randomly, sometimes routing to default backend, sometimes routing to the acl > backend. > > The problem was I had 'mode tcp' in global and had to add 'mode http' to

Re: [PATCH] BUILD/MINOR: atomics: mac arm64 build fix

2021-10-23 Thread Willy Tarreau
Hi David, On Sat, Oct 23, 2021 at 02:51:59PM +0100, David CARLIER wrote: > Hi, > Hopefully not too late for the 2.5 release :-) No worries, and fixes can be merged later anyway. I have some questions below. > From b9c083252bdabf2d0bbfffa1383453cdfd94ab13 Mon Sep 17 00:00:00 2001 > From: David CA

[PATCH] BUILD/MINOR: atomics: mac arm64 build fix

2021-10-23 Thread David CARLIER
Hi, Hopefully not too late for the 2.5 release :-) Kind regards. 0001-BUILD-MINOR-atomics-mac-arm64-build-fix.patch Description: Binary data