BUG/MINOR: cfgparse/proxy: Hande allocation errors during proxy section parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 16:46:52 +0000 (18:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 19:35:12 +0000 (21:35 +0200)
commitb45a7d4b74a00622cea6a5c3a252f735abcb7852
treea75aa8e6b80ab15f96d2fd5a6a354bfd1b1e2ca2
parent0c6d1dcf7d45f71361cf10e7e9efe1d6a0a6a994
BUG/MINOR: cfgparse/proxy: Hande allocation errors during proxy section parsing

At several places during the proxy section parsing, memory allocation was
performed with no check. Result is now tested and an error is returned if
the allocation fails.

This patch may be backported to all stable version but it only fixes
allocation errors during configuration parsing. Thus, it is not mandatory.
src/cfgparse-listen.c