From 9571f5f235b62a5d6dacd9b40c946dc48b7243d9 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 May 2016 13:33:38 +0200 Subject: [PATCH] Changed: Check for NULL X509_INFO --- code/ryzom/client/src/http_client_curl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/client/src/http_client_curl.cpp b/code/ryzom/client/src/http_client_curl.cpp index 8ca82b9ad..322223f94 100644 --- a/code/ryzom/client/src/http_client_curl.cpp +++ b/code/ryzom/client/src/http_client_curl.cpp @@ -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)