]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: server: Fix server-template with default-server
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 28 Aug 2026 15:04:51 +0000 (17:04 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 28 Aug 2026 15:02:54 +0000 (17:02 +0200)
commit5ce3647dbcfeb9fd552265fbf2499086354578e8
treeda540e4fed88fdd5d6834f21c7ea6fae5db57694
parent0a2e5ae27030ce4082e8c4f332b21dd2ca898111
BUG/MEDIUM: server: Fix server-template with default-server

Commit c81044a8b moved the call for srv_settings_cpy() from
_srv_parse_init() to parse_server(), but in doing so, it will use 1 as
the last argument if the new server is a server template. This is,
however, wrong, srv_settings_cpy() expect 1 if the source is a
server template, not the destination. Doing that will lead to an
uninitialized server, if there were settings to copy from another
server.
This fixes using server templates with default-server.
src/server.c