]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/cli: fix a potential NULL dereference
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Mar 2020 13:42:36 +0000 (14:42 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 20 Mar 2020 13:49:25 +0000 (14:49 +0100)
commit18eeb8e8156c4f32a65cee40a96b0b30e74eeb59
tree671802e79477ad35fee279c7befa78eed7bcbdaa
parentc0caac2cc8f51c5802f0128a4ceb0c73ff601ead
BUG/MINOR: ssl/cli: fix a potential NULL dereference

Fix a potential NULL dereference in "show ssl cert" when we can't
allocate the <out> trash buffer.

This patch creates a new label so we could jump without trying to do the
ci_putchk in this case.

This bug was introduced by ea987ed ("MINOR: ssl/cli: 'new ssl cert'
command"). 2.2 only.

This bug was referenced by issue #556.
src/ssl_sock.c