]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: mworker: use the proxy helper functions in mworker_cli_proxy_create()
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:13:22 +0000 (15:13 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:13:22 +0000 (15:13 +0200)
commitae787bad80cc9b775cbbcc4b8b463d689df9e938
tree3b95398e6620a416e60be54909811e8712657e7d
parente7f74623e4fc7d582145b38a60c6911acc7da41d
CLEANUP: mworker: use the proxy helper functions in mworker_cli_proxy_create()

Cleanup the mworker_cli_proxy_create() function by removing the
allocation and init of the proxy which is done manually, and replace it
by alloc_new_proxy(). Do the same with the free_proxy() function.

This patch also move the insertion at the end of the function.
src/cli.c