]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: avoid double free when releasing bind_confs
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 16:57:46 +0000 (17:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 21:07:36 +0000 (22:07 +0100)
commit94ff03af84ee0c4a2b6cfb92332fcafbcdc48765
treecd7a91e496a2f94f5850ff2e1e686f5f87d5a267
parent30fd4bd8446dd7104b7d1cae9e762c7d1405171a
BUG/MEDIUM: ssl: avoid double free when releasing bind_confs

ssl_sock functions don't mark pointers as NULL after freeing them. So
if a "bind" line specifies some SSL settings without the "ssl" keyword,
they will get freed at the end of check_config_validity(), then freed
a second time on exit. Simply mark the pointers as NULL to fix this.
This fix needs to be backported to 1.7 and 1.6.
src/cfgparse.c
src/ssl_sock.c