]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: config: make the cfg_keyword parsers take a const for the defproxy
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 08:53:46 +0000 (09:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:09:43 +0000 (10:09 +0100)
commit018251667e4c95478ce0026f4d700e0420f8ce24
tree4952e8617c27aca5fbf718626037d6bfc91ecb80
parent82a92743fcbaf1f88b05f31ab8d2f7093157aad1
CLEANUP: config: make the cfg_keyword parsers take a const for the defproxy

The default proxy was passed as a variable to all parsers instead of a
const, which is not without risk, especially when some timeout parsers used
to make some int pointers point to the default values for comparisons. We
want to be certain that none of these parsers will modify the defaults
sections by accident, so it's important to mark this proxy as const.

This patch touches all occurrences found (89).
26 files changed:
include/haproxy/cfgparse.h
include/haproxy/stream.h
src/51d.c
src/activity.c
src/cfgparse-ssl.c
src/cli.c
src/connection.c
src/da.c
src/extcheck.c
src/fcgi-app.c
src/fd.c
src/filters.c
src/flt_http_comp.c
src/hlua.c
src/http_htx.c
src/listener.c
src/mux_h1.c
src/mux_h2.c
src/mworker.c
src/proxy.c
src/server.c
src/task.c
src/tcp_rules.c
src/tcpcheck.c
src/vars.c
src/wurfl.c