mirror of
https://github.com/moparisthebest/curl
synced 2025-03-02 10:21:46 -05:00

sk_X509_pop will decrease the size of the stack which means that the loop would end after having added only half of the certificates. Also make sure that the X509 certificate is freed in case SSL_CTX_add_extra_chain_cert fails.