return bad status on null crl

pull/35641/head
Gregory Cooke 1 year ago
parent 8f8a64dc6e
commit 2b6f63717c
  1. 2
      src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc

@ -57,7 +57,7 @@ namespace {
// and add this to it.
absl::StatusOr<std::string> IssuerFromCrl(X509_CRL* crl) {
if (crl == nullptr) {
return "";
return absl::InvalidArgumentError("crl cannot be null");
}
X509_NAME* issuer = X509_CRL_get_issuer(crl);
if (issuer == nullptr) {

Loading…
Cancel
Save