BUG/MINOR: cfgparse: Fail if the strdup() for `rule->be.name` for `use_backend` fails
authorTim Duesterhus <tim@bastelstu.be>
Sun, 3 Jan 2021 21:54:43 +0000 (22:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jan 2021 13:49:14 +0000 (14:49 +0100)
commitf46d9cd735d1664c113c041d85179a81bded8fc6
treebc8db6844849ee4a525058944c45a4d8a03973f4
parenta9a012d5db91bcdd261446d09fac80e85593011f
BUG/MINOR: cfgparse: Fail if the strdup() for `rule->be.name` for `use_backend` fails

This patch fixes GitHub issue #1024.

I could track the `strdup` back to commit
3a1f5fda109fc56ae127d03eaf34ce027c9542e1 which is 1.9-dev8. It's probably not
worth the effort to backport it across this refactoring.

This patch should be backported to 1.9+.

(cherry picked from commit 5ce5a1586d8c67affa604dedf0faa2c5a02ecab5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/cfgparse-listen.c