diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 96eec9aab..62e7b4475 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -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);