]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: proxy: preset the error message pointer to NULL in parse_new_proxy()
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Feb 2022 15:37:19 +0000 (16:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Feb 2022 15:40:04 +0000 (16:40 +0100)
commit282b6a7539add7517f2b16cc82b6a3509492fd76
treedfce0885933dd01692e118589c8ccdd152f5d5d5
parent2da02ae8b2ce60b9106fa893dc02917c26734c9c
BUG/MINOR: proxy: preset the error message pointer to NULL in parse_new_proxy()

As reported by Coverity in issue #1568, a missing initialization of the
error message pointer in parse_new_proxy() may result in displaying garbage
or crashing in case of memory allocation error when trying to create a new
proxy on startup.

This should be backported to 2.4.
src/proxy.c