Changed: Check for NULL X509_INFO

This commit is contained in:
kervala 2016-05-08 13:33:38 +02:00
parent 86c438b010
commit 60257c3bf1

View file

@ -111,7 +111,7 @@ static CURLcode sslctx_function(CURL * /* curl */, void *sslctx, void * /* parm
{
X509_INFO *itmp = sk_X509_INFO_value(info, i);
if (itmp->x509)
if (itmp && itmp->x509)
{
// add our certificate to this store
if (X509_STORE_add_cert(store, itmp->x509) == 0)