File 0223-ssl-Remove-double-handling-of-cert-record.patch of Package erlang
From 055d8246b76e0dd4e32d625c0a9651af8ef868c4 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin <ingela@erlang.org>
Date: Mon, 25 Oct 2021 16:02:58 +0200
Subject: [PATCH 1/2] ssl: Remove "double handling" of cert record
Closes #5300
---
lib/ssl/src/ssl_crl.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ssl/src/ssl_crl.erl b/lib/ssl/src/ssl_crl.erl
index d3b66df870..0607ffcbd9 100644
--- a/lib/ssl/src/ssl_crl.erl
+++ b/lib/ssl/src/ssl_crl.erl
@@ -44,8 +44,8 @@ trusted_cert_and_path(CRL, issuer_not_found, CertPath, {Db, DbRef}) ->
{error, unknown_ca} ->
Issuer = public_key:pkix_normalize_name(public_key:pkix_crl_issuer(CRL)),
IsIssuerFun =
- fun({_Key, #cert{otp=ErlCertCandidate}}, Acc) ->
- verify_crl_issuer(CRL, ErlCertCandidate, Issuer, Acc);
+ fun({_Key, CertCandidate}, Acc) ->
+ verify_crl_issuer(CRL, CertCandidate, Issuer, Acc);
(_, Acc) ->
Acc
end,
--
2.31.1