diff options
Diffstat (limited to 'src/x509.erl')
-rw-r--r-- | src/x509.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x509.erl b/src/x509.erl index 42c6b89..8b1211d 100644 --- a/src/x509.erl +++ b/src/x509.erl @@ -16,7 +16,7 @@ normalise_chain(AcceptableRootCerts, CertChain) -> {false, Reason} -> {Reason, "invalid chain"}; {true, Root} -> - [Leaf, Chain] = CertChain, + [Leaf | Chain] = CertChain, {ok, [detox_precert(Leaf) | Chain] ++ Root} end. |