aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-03-16 10:53:32 +0100
committerIngela Anderton Andin <[email protected]>2015-03-16 10:57:50 +0100
commitfaaa62b5955ab8e342b08521036426ca72d98ab3 (patch)
treeaf2612154ffc76877704ef2b727f618b167772e5
parent0b467d9ef8171f21938cdd7664567693df33d35c (diff)
downloadotp-faaa62b5955ab8e342b08521036426ca72d98ab3.tar.gz
otp-faaa62b5955ab8e342b08521036426ca72d98ab3.tar.bz2
otp-faaa62b5955ab8e342b08521036426ca72d98ab3.zip
ssl: Fix incorrect argument handling, thanks to dialyzer
-rw-r--r--lib/ssl/src/ssl_crl_cache.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssl/src/ssl_crl_cache.erl b/lib/ssl/src/ssl_crl_cache.erl
index b2bdb19979..b9d6a61c3b 100644
--- a/lib/ssl/src/ssl_crl_cache.erl
+++ b/lib/ssl/src/ssl_crl_cache.erl
@@ -34,7 +34,7 @@
%% Cache callback API
%%====================================================================
-lookup(#'DistributionPoint'{distributionPoint={fullName, Names}},
+lookup(#'DistributionPoint'{distributionPoint = {fullName, Names}},
CRLDbInfo) ->
get_crls(Names, CRLDbInfo);
lookup(_,_) ->
@@ -48,8 +48,8 @@ select(Issuer, {{_Cache, Mapping},_}) ->
CRLs
end.
-fresh_crl(DistributionPoint, CRL) ->
- case get_crls(DistributionPoint, undefined) of
+fresh_crl(#'DistributionPoint'{distributionPoint = {fullName, Names}}, CRL) ->
+ case get_crls(Names, undefined) of
not_available ->
CRL;
[NewCRL] ->