aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-06-20 11:02:51 +0200
committerIngela Anderton Andin <[email protected]>2012-06-20 11:02:51 +0200
commit00dee07f0480994a303e16c803d367c34c2a7f26 (patch)
tree71d20efcdaf02a4752b7449b0eabe887762375ce
parentc2388ad41790c266b0e78724b95ec92d2951b43a (diff)
parentc6b0348bb4ab8e3603b06b9e58dcbca2641bd35a (diff)
downloadotp-00dee07f0480994a303e16c803d367c34c2a7f26.tar.gz
otp-00dee07f0480994a303e16c803d367c34c2a7f26.tar.bz2
otp-00dee07f0480994a303e16c803d367c34c2a7f26.zip
Merge remote branch 'upstream/maint'
* upstream/maint: ssl: Fix pem cache bug
-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.