mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
Changed: Check for NULL X509_INFO
--HG-- branch : develop
This commit is contained in:
parent
a0916ca14a
commit
c95bd7faba
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ static CURLcode sslctx_function(CURL * /* curl */, void *sslctx, void * /* parm
|
||||||
{
|
{
|
||||||
X509_INFO *itmp = sk_X509_INFO_value(info, i);
|
X509_INFO *itmp = sk_X509_INFO_value(info, i);
|
||||||
|
|
||||||
if (itmp->x509)
|
if (itmp && itmp->x509)
|
||||||
{
|
{
|
||||||
// add our certificate to this store
|
// add our certificate to this store
|
||||||
if (X509_STORE_add_cert(store, itmp->x509) == 0)
|
if (X509_STORE_add_cert(store, itmp->x509) == 0)
|
||||||
|
|
Loading…
Reference in a new issue