]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: add checks for defsrv's validity
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jul 2025 15:03:13 +0000 (17:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2025 08:36:58 +0000 (10:36 +0200)
commit76828d4120c9b6f4cad75d84f201e5dd5b023be4
treeb5a45d61378ea9339a4f948325cd4fd367d67104
parent4ac28f07d0b2b6b0f970af8b5902ee48295ccb75
MINOR: proxy: add checks for defsrv's validity

Now we only copy the default server's settings if such a default server
exists, otherwise we only initialize it. At the moment it always exists.

The change is mostly performed in srv_settings_cpy() since that's where
each caller passes through, and there's no point duplicating that test
everywhere.
src/proxy.c
src/server.c