BUG/MINOR: ssl: init tmp chunk correctly in ssl_sock_load_sctl_from_file()
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Jan 2021 13:58:51 +0000 (14:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2021 15:50:59 +0000 (16:50 +0100)
commit7cdbb5643de32c97f9d7693f140b89f4a4cb9493
tree10f628788b809f481b047a5a9a2a5b4f9c60b05c
parent7edf20eb55282d86e78fa1c642975b4b8ffcbec4
BUG/MINOR: ssl: init tmp chunk correctly in ssl_sock_load_sctl_from_file()

Use chunk_inistr() for a chunk initialisation in
ssl_sock_load_sctl_from_file() instead of a manual initialisation which
was not initialising head.

Fix issue #1073.

Must be backported as far as 2.2

(cherry picked from commit 8d67394f6915c6d2db40bc1e9593fd392827da8d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_ckch.c