components/openssl: fix extra certification loading

This commit is contained in:
Dong Heng 2016-09-27 19:06:07 +08:00
parent 6941b5871a
commit 9e20d31f89

View file

@ -186,7 +186,7 @@ static int ssl_pm_reload_crt(SSL *ssl)
if (ca_pm->x509_crt) {
mbedtls_ssl_conf_ca_chain(&ssl_pm->conf, ca_pm->x509_crt, NULL);
} else if (ca_pm->ex_crt) {
mbedtls_ssl_conf_ca_chain(&ssl_pm->conf, ca_pm->x509_crt, NULL);
mbedtls_ssl_conf_ca_chain(&ssl_pm->conf, ca_pm->ex_crt, NULL);
}
if (crt_pm->x509_crt && pkey_pm->pkey) {