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:
William Lallemand 2022-10-30 19:00:06 +01:00
parent 4a689dad03
commit 1ef1b859d0

View File

@ -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;