diff options
author | Péter Dimitrov <[email protected]> | 2019-06-19 11:11:49 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-06-19 11:11:49 +0200 |
commit | 6e763058d39a30027750fec01708677462bb27bf (patch) | |
tree | 9b0040f679510d46a1ef7c7013810b5e10be89b7 /lib | |
parent | 4319a7f8bc93388ec540e954eb9bb73ea1eec4ef (diff) | |
download | otp-6e763058d39a30027750fec01708677462bb27bf.tar.gz otp-6e763058d39a30027750fec01708677462bb27bf.tar.bz2 otp-6e763058d39a30027750fec01708677462bb27bf.zip |
ssl: Fix handling of certificate decoding problems
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssl/src/tls_handshake_1_3.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_handshake_1_3.erl b/lib/ssl/src/tls_handshake_1_3.erl index 8a4ad922e1..cb0dbc0206 100644 --- a/lib/ssl/src/tls_handshake_1_3.erl +++ b/lib/ssl/src/tls_handshake_1_3.erl @@ -802,7 +802,7 @@ validate_certificate_chain(Certs, CertDbHandle, CertDbRef, SslOptions, CRLDbHand CertDbHandle, CertDbRef) end catch - error:{badmatch,{asn1, Asn1Reason}} -> + error:{badmatch,{error, {asn1, Asn1Reason}}} -> %% ASN-1 decode of certificate somehow failed {error, {certificate_unknown, {failed_to_decode_certificate, Asn1Reason}}}; error:OtherReason -> |