]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] checks: ensure that we can inherit binary checks from the defaults section
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Oct 2010 14:15:31 +0000 (16:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Oct 2010 17:04:35 +0000 (19:04 +0200)
commitaa2f389cbb6f4dc5af038ef77335415c6141d2fc
tree754143d7918a661f15aeb7a1e5761d05a6491907
parent53621e0eb6fc3197480e0b87422cf03ec6633bab
[MINOR] checks: ensure that we can inherit binary checks from the defaults section

Health checks were all pure ASCII, but we're going to have to support some
binary checks (eg: SQL). When they're inherited from the default section,
they will be truncated to the first \0 due to strdup(). Let's fix that with
a simple malloc.
(cherry picked from commit 98fc04a766bcff80f57db2b1cd865c91761b131b)
src/cfgparse.c