mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-23 23:45:37 +00:00
BUG/MINOR: ssl: ckch->chain must be initialized
It's a regression from 96a9c973
"MINOR: ssl: split
ssl_sock_load_crt_file_into_ckch()".
This commit is contained in:
parent
f6ac4fa745
commit
ed17f47c71
@ -3196,6 +3196,11 @@ static int ssl_sock_load_pem_into_ckch(const char *path, char *buf, struct cert_
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* no chain */
|
||||||
|
if (ckch->chain == NULL) {
|
||||||
|
ckch->chain = sk_X509_new_null();
|
||||||
|
}
|
||||||
|
|
||||||
ret = ERR_get_error();
|
ret = ERR_get_error();
|
||||||
if (ret && (ERR_GET_LIB(ret) != ERR_LIB_PEM && ERR_GET_REASON(ret) != PEM_R_NO_START_LINE)) {
|
if (ret && (ERR_GET_LIB(ret) != ERR_LIB_PEM && ERR_GET_REASON(ret) != PEM_R_NO_START_LINE)) {
|
||||||
memprintf(err, "%sunable to load certificate chain from file '%s'.\n",
|
memprintf(err, "%sunable to load certificate chain from file '%s'.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user