diff --git a/src/XrdSecgsi/XrdSecProtocolgsi.cc b/src/XrdSecgsi/XrdSecProtocolgsi.cc index 54490f9db43..d993e4a6482 100644 --- a/src/XrdSecgsi/XrdSecProtocolgsi.cc +++ b/src/XrdSecgsi/XrdSecProtocolgsi.cc @@ -4008,7 +4008,7 @@ XrdCryptoX509Crl *XrdSecProtocolgsi::LoadCRL(XrdCryptoX509 *xca, const char *sub // If not required, we are done if (CRLCheck < 2 || (dwld == 0)) { // Done - return crl; + return crl ? crl : (XrdCryptoX509Crl*)(-1); } // If in 'required' mode, we will also try to load the CRL from the @@ -4358,7 +4358,9 @@ int XrdSecProtocolgsi::GetCA(const char *cahash, pfeRef.UnLock(); return 0; } else { - PRINT("CRL entry for '"<= 2) { + PRINT("CRL entry for '"< 0) { if ((crl = LoadCRL(chain->Begin(), cahash, cf, CRLDownload))) { + if (crl == (XrdCryptoX509Crl*)(-1)) { + crl = 0; + } // Good CA DEBUG("CRL successfully loaded"); } else {