]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl/cli: don't alloc path when cert not found
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 4 Nov 2019 09:59:32 +0000 (10:59 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 4 Nov 2019 10:22:33 +0000 (11:22 +0100)
commit8a7fdf036b1ad333961b319212d2505f73b33cc0
tree9298ae274b2afc69df6e8c04cb86d7d35db01a26
parent1753cb544dd19714daecb9c6c4b0d07b6abf40f2
BUG/MEDIUM: ssl/cli: don't alloc path when cert not found

When doing an 'ssl set cert' with a certificate which does not exist in
configuration, the appctx->ctx.ssl.old_ckchs->path was duplicated while
app->ctx.ssl.old_ckchs was NULL, resulting in a NULL dereference.

Move the code so the 'not referenced' error is done before this.
src/ssl_sock.c