diff options
author | Erlang/OTP <[email protected]> | 2019-07-02 13:44:02 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2019-07-02 13:44:02 +0200 |
commit | e00aecba6c2060440668b36ac5bae0a380e5fa63 (patch) | |
tree | ba8f8101d31574696e2108e2ced1f165e45d8d44 | |
parent | 20c7f806a495d22d9bae1d24250b12e3e275e3a9 (diff) | |
parent | 6e763058d39a30027750fec01708677462bb27bf (diff) | |
download | otp-e00aecba6c2060440668b36ac5bae0a380e5fa63.tar.gz otp-e00aecba6c2060440668b36ac5bae0a380e5fa63.tar.bz2 otp-e00aecba6c2060440668b36ac5bae0a380e5fa63.zip |
Merge branch 'peterdmv/ssl/fix-cert-error-handling/OTP-15900' into maint-22
* peterdmv/ssl/fix-cert-error-handling/OTP-15900:
ssl: Fix handling of certificate decoding problems
-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 e83b3f63bb..53f9adbbd3 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 -> |