[Rt-commit] rt branch, 4.4/fix-crash-if-crl-distribution-points-not-present, created. rt-4.4.4-189-g073933b8f7

Dianne Skoll dianne at bestpractical.com
Wed Dec 16 13:57:12 EST 2020


The branch, 4.4/fix-crash-if-crl-distribution-points-not-present has been created
        at  073933b8f7ab8453aa44d82fe7d9d8caeff95b5d (commit)

- Log -----------------------------------------------------------------
commit 073933b8f7ab8453aa44d82fe7d9d8caeff95b5d
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Wed Dec 16 13:56:03 2020 -0500

    Fix a crash if a CA certificate does not define CRLDistributionPoints

diff --git a/lib/RT/Crypt/SMIME.pm b/lib/RT/Crypt/SMIME.pm
index b9c9c191a1..3b3373f7ae 100644
--- a/lib/RT/Crypt/SMIME.pm
+++ b/lib/RT/Crypt/SMIME.pm
@@ -1041,7 +1041,7 @@ sub GetCertificateInfo {
             # We fetch the CRL file ourselves using LWP rather than
             # using OpenSSL's -crl_download option so we can
             # control the timeout.
-            my ($url) = @{$cert->CRLDistributionPoints};
+            my ($url) = @{$cert->CRLDistributionPoints || []};
             if ($url) {
                 my $crl_file = $self->DownloadAndConvertCRLToPEM($url);
                 if ($crl_file) {

-----------------------------------------------------------------------


More information about the rt-commit mailing list