haproxy/include
Willy Tarreau 8113a5d78f BUG/MINOR: config: use a copy of the file name in proxy configurations
Each proxy contains a reference to the original config file and line
number where it was declared. The pointer used is just a reference to
the one passed to the function instead of being duplicated. The effect
is that it is not valid anymore at the end of the parsing and that all
proxies will be enumerated as coming from the same file on some late
configuration errors. This may happen for exmaple when reporting SSL
certificate issues.

By copying using strdup(), we avoid this issue.

1.4 has the same issue, though no report of the proxy file name is done
out of the config section. Anyway a backport is recommended to ease
post-mortem analysis.
2012-10-04 08:13:32 +02:00
..
common MINOR: config: make str2listener() use memprintf() to report errors. 2012-09-24 10:53:16 +02:00
import [MAJOR] replace ultree with ebtree in wait-queues 2008-06-24 08:17:16 +02:00
proto MINOR: ssl: add build param USE_PRIVATE_CACHE to build cache without shared memory 2012-10-02 08:34:38 +02:00
types BUG/MINOR: config: use a copy of the file name in proxy configurations 2012-10-04 08:13:32 +02:00