mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-16 09:09:21 -05:00
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
This commit is contained in:
parent
b8868498ed
commit
8d67394f69
1 changed files with 1 additions and 3 deletions
|
|
@ -101,9 +101,7 @@ int ssl_sock_load_sctl_from_file(const char *sctl_path, char *buf, struct cert_k
|
|||
struct buffer *sctl;
|
||||
|
||||
if (buf) {
|
||||
tmp.area = buf;
|
||||
tmp.data = strlen(buf);
|
||||
tmp.size = tmp.data + 1;
|
||||
chunk_initstr(&tmp, buf);
|
||||
src = &tmp;
|
||||
} else {
|
||||
fd = open(sctl_path, O_RDONLY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue