summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn DeTreville <jdetreville@vmware.com>2010-11-15 16:27:22 +0000
committerJohn DeTreville <jdetreville@vmware.com>2010-11-15 16:27:22 +0000
commit44d4ec091ec09626ae865ed9d0a2b615854243ad (patch)
treee95a0cac30f31a35d43ce443eb850b1945332fac
parent4563c988b0d6c218499435074fd02f1d7e128f11 (diff)
downloadrabbitmq-server-bug23488.tar.gz
Fixed thinkos in calls to string:join.bug23488
-rw-r--r--src/rabbit_ssl.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl
index ff79d433..ce218b7b 100644
--- a/src/rabbit_ssl.erl
+++ b/src/rabbit_ssl.erl
@@ -99,7 +99,7 @@ format_rdn_sequence({rdnSequence, Seq}) ->
%% Format an RDN set.
format_complex_rdn(RDNs) ->
- string:join([lists:flatten(format_rdn(RDN)) || RDN <- RDNs], "+").
+ string:join([format_rdn(RDN) || RDN <- RDNs], "+").
%% Format an RDN. If the type name is unknown, use the dotted decimal
%% representation. See RFC4514, section 2.3.
@@ -126,8 +126,7 @@ format_rdn(#'AttributeTypeAndValue'{type = T, value = V}) ->
io_lib:format(Fmt ++ "=~s", [FV]);
none when is_tuple(T) ->
TypeL = [io_lib:format("~w", [X]) || X <- tuple_to_list(T)],
- io_lib:format("~s:~s",
- [string:join(lists:flatten(TypeL), "."), FV]);
+ io_lib:format("~s:~s", [string:join(TypeL, "."), FV]);
none ->
io_lib:format("~p:~s", [T, FV])
end.