aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_manager.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-06-29 14:48:44 +0200
committerIngela Anderton Andin <[email protected]>2012-08-22 14:00:45 +0200
commita0bd4951be74a5db1c382a7e19432903db10e576 (patch)
tree7f7a9dadf9714c772d329b6ac8904dbf54b0b1aa /lib/ssl/src/ssl_manager.erl
parentefcf7a86cd03799671bd518a20dfb84d34ed11d7 (diff)
downloadotp-a0bd4951be74a5db1c382a7e19432903db10e576.tar.gz
otp-a0bd4951be74a5db1c382a7e19432903db10e576.tar.bz2
otp-a0bd4951be74a5db1c382a7e19432903db10e576.zip
ssl: Dialyzer fixes
Diffstat (limited to 'lib/ssl/src/ssl_manager.erl')
-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 3e947af2c9..af2bfa394d 100644
--- a/lib/ssl/src/ssl_manager.erl
+++ b/lib/ssl/src/ssl_manager.erl
@@ -86,7 +86,7 @@ start_link_dist(Opts) ->
%%--------------------------------------------------------------------
-spec connection_init(binary()| {der, list()}, client | server) ->
- {ok, certdb_ref(), db_handle(), db_handle()}.
+ {ok, certdb_ref(), db_handle(), db_handle(), db_handle(), db_handle()}.
%%
%% Description: Do necessary initializations for a new connection.
%%--------------------------------------------------------------------
@@ -325,7 +325,7 @@ handle_info({clean_cert_db, Ref, File},
case ssl_certificate_db:ref_count(Ref, RefDb, 0) of
0 ->
MD5 = crypto:md5(File),
- case ssl_certificate_db:lookup_cached_pem(MD5, PemCache) of
+ case ssl_certificate_db:lookup_cached_pem(PemCache, MD5) of
[{Content, Ref}] ->
ssl_certificate_db:insert(MD5, Content, PemCache);
undefined ->