Skip to content

Commit

Permalink
Fixed X509Crl.IsDelta for CRLs without extensions (#513)
Browse files Browse the repository at this point in the history
* Fixed X509Crl.IsDelta for CRLs without extensions

GetCriticalExtensionOids returns null for CRLs without any extensions.
  • Loading branch information
swoga authored and jstedfast committed Oct 25, 2019
1 parent ecfcc83 commit 85b2e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/BouncyCastleCertificateExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ internal static bool IsDelta (this X509Crl crl)
{
var critical = crl.GetCriticalExtensionOids ();

return critical.Contains (X509Extensions.DeltaCrlIndicator.Id);
return critical != null ? critical.Contains (X509Extensions.DeltaCrlIndicator.Id) : false;
}
}
}

0 comments on commit 85b2e11

Please sign in to comment.