BUG/MINOR: listener: Handle allocation error when allocating a new bind_conf
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 14:56:37 +0000 (16:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 19:33:43 +0000 (21:33 +0200)
commit0c6d1dcf7d45f71361cf10e7e9efe1d6a0a6a994
tree3818794cdf05b95352399a4e0c6e07193a543f14
parent2e848a9b75df0d1e7f3b4423fad6d6a478c4039c
BUG/MINOR: listener: Handle allocation error when allocating a new bind_conf

Allocation error are now handled in bind_conf_alloc() functions. Thus
callers, when not already done, are also updated to catch NULL return value.

This patch may be backported (at least partially) to all stable
versions. However, it only fix errors durung configuration parsing. Thus it
is not mandatory.
include/haproxy/listener.h
src/cfgparse-listen.c
src/cli.c
src/log.c