]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl/cli: trying to access to free'd memory
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 9 Apr 2020 15:12:16 +0000 (17:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 9 Apr 2020 15:12:16 +0000 (17:12 +0200)
commitd5e9377312eb9d64351a878f7d3f7d4a231bdb55
tree66892ac4a7449beab4acec9d9b038b0cce827e84
parentba1c33f8262e40ea3c334a2db4eba18e7e481364
BUG/MEDIUM: ssl/cli: trying to access to free'd memory

Bug introduced by d9d5d1b ("MINOR: ssl: free instances and SNIs with
ckch_inst_free()").

Upon an 'commit ssl cert' the HA_RWLOCK_WRUNLOCK of the SNI lock is done
with using the bind_conf pointer of the ckch_inst which was freed.

Fix the problem by using an intermediate variable to store the
bind_conf pointer.
src/ssl_sock.c