aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-06-19 15:55:40 +0200
committerIngela Anderton Andin <[email protected]>2012-06-19 15:55:40 +0200
commitd7d9cc3db6e8fb49306abfee503cf89da606f51d (patch)
treefd28b780755bcb972e5b29dc9ee8b52844b2e195 /lib
parent67d2e30e77db74d0852421c21362d1a9374780e1 (diff)
downloadotp-d7d9cc3db6e8fb49306abfee503cf89da606f51d.tar.gz
otp-d7d9cc3db6e8fb49306abfee503cf89da606f51d.tar.bz2
otp-d7d9cc3db6e8fb49306abfee503cf89da606f51d.zip
ssl: Fix pem cache bug
A general case clause was put before a less general so that the less general case would never match.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/ssl_manager.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_manager.erl b/lib/ssl/src/ssl_manager.erl
index a18cb70e2d..3e947af2c9 100644
--- a/lib/ssl/src/ssl_manager.erl
+++ b/lib/ssl/src/ssl_manager.erl
@@ -107,10 +107,10 @@ connection_init(Trustedcerts, Role) ->
cache_pem_file(File, DbHandle) ->
MD5 = crypto:md5(File),
case ssl_certificate_db:lookup_cached_pem(DbHandle, MD5) of
- [Content] ->
- {ok, Content};
[{Content,_}] ->
{ok, Content};
+ [Content] ->
+ {ok, Content};
undefined ->
call({cache_pem, {MD5, File}})
end.