mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
CLEANUP: ssl: remove dead code in ssl_sock_load_pem_into_ckch()
Commit 432cd1a ("MEDIUM: ssl: be stricter about chain error")
introduced some dead code, let's remove it.
Should fix issue #1909.
This commit is contained in:
parent
4a689dad03
commit
1ef1b859d0
@ -626,8 +626,6 @@ int ssl_sock_load_pem_into_ckch(const char *path, char *buf, struct cert_key_and
|
||||
while ((ca = PEM_read_bio_X509(in, NULL, NULL, NULL))) {
|
||||
if (chain == NULL)
|
||||
chain = sk_X509_new_null();
|
||||
if (ca == NULL)
|
||||
break;
|
||||
if (!sk_X509_push(chain, ca)) {
|
||||
X509_free(ca);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user