]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: do not keep an invalid dynamic server in px ids tree
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 8 Jun 2021 15:00:20 +0000 (17:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Jun 2021 09:42:53 +0000 (11:42 +0200)
commit1613b4a75de04f110b7d5a09c1aebbf621c3811c
treeb71bf6a744a276a62330e591df35a5aa1f107c2c
parent406aaef55ada9c0f31c540de404f53f74f124af8
BUG/MINOR: server: do not keep an invalid dynamic server in px ids tree

A bug is present when trying to create a dynamic server with a fixed id.
If the server is detected invalid due to a later parsing arguments
error, the server is not removed from the proxy used ids tree before
being freed.

Change the mode of operation of 'id' keyword parsing handler. The
insertion in the backend tree is removed from the handler and is not
taken in charge by parse_server for configuration parsing. For the
dynamic servers, the insertion is called at the end of the 'add server'
CLI handler when the server has been validated.

This must be backported up to 2.4.
src/server.c