fixed crash if crl fetching fails
This commit is contained in:
@@ -705,10 +705,13 @@ static cert_validation_t check_crl(private_credential_manager_t *this,
|
|||||||
while (enumerator->enumerate(enumerator, &uri))
|
while (enumerator->enumerate(enumerator, &uri))
|
||||||
{
|
{
|
||||||
current = fetch_crl(this, uri);
|
current = fetch_crl(this, uri);
|
||||||
best = get_better_crl(this, current, best, subject, issuer, &valid);
|
if (current)
|
||||||
if (best && valid != VALIDATION_STALE)
|
|
||||||
{
|
{
|
||||||
break;
|
best = get_better_crl(this, current, best, subject, issuer, &valid);
|
||||||
|
if (best && valid != VALIDATION_STALE)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
@@ -723,10 +726,13 @@ static cert_validation_t check_crl(private_credential_manager_t *this,
|
|||||||
while (enumerator->enumerate(enumerator, &uri))
|
while (enumerator->enumerate(enumerator, &uri))
|
||||||
{
|
{
|
||||||
current = fetch_crl(this, uri);
|
current = fetch_crl(this, uri);
|
||||||
best = get_better_crl(this, current, best, subject, issuer, &valid);
|
if (current)
|
||||||
if (best && valid != VALIDATION_STALE)
|
|
||||||
{
|
{
|
||||||
break;
|
best = get_better_crl(this, current, best, subject, issuer, &valid);
|
||||||
|
if (best && valid != VALIDATION_STALE)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|||||||
Reference in New Issue
Block a user