summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranupamasingh10 <31176057+anupamasingh10@users.noreply.github.com>2023-03-15 12:14:49 +0100
committerIngela Anderton Andin <ingela@erlang.org>2023-04-25 16:23:58 +0200
commit45aabdf3015126b6448d9c286b01f5814f680cce (patch)
treee7dfdd2b5afba8fdb2222fc454f1a32005860714
parent6706de788689d4b65f2190fb047641a6d94a6131 (diff)
downloaderlang-45aabdf3015126b6448d9c286b01f5814f680cce.tar.gz
Update lib/eldap/src/eldap.erl
Co-authored-by: Kenneth Lundin <kenneth.lundin@gmail.com>
-rw-r--r--lib/eldap/src/eldap.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/eldap/src/eldap.erl b/lib/eldap/src/eldap.erl
index ab6363a28b..b9a2891fa7 100644
--- a/lib/eldap/src/eldap.erl
+++ b/lib/eldap/src/eldap.erl
@@ -617,13 +617,14 @@ loop(Cpid, Data) ->
?MODULE:loop(Cpid, Data);
{From, info} ->
- Res =
+ SocketType =
case Data#eldap.ldaps of
- true ->
- #{socket => Data#eldap.fd, socket_type => ssl};
- false ->
- #{socket => Data#eldap.fd, socket_type => tcp}
+ true ->
+ ssl;
+ false ->
+ tcp
end,
+ Res = #{socket => Data#eldap.fd, socket_type => SocketType} ,
send(From, Res),
?MODULE:loop(Cpid, Data);