diff options
author | John DeTreville <jdetreville@vmware.com> | 2010-11-15 16:27:22 +0000 |
---|---|---|
committer | John DeTreville <jdetreville@vmware.com> | 2010-11-15 16:27:22 +0000 |
commit | 44d4ec091ec09626ae865ed9d0a2b615854243ad (patch) | |
tree | e95a0cac30f31a35d43ce443eb850b1945332fac | |
parent | 4563c988b0d6c218499435074fd02f1d7e128f11 (diff) | |
download | rabbitmq-server-bug23488.tar.gz |
Fixed thinkos in calls to string:join.bug23488
-rw-r--r-- | src/rabbit_ssl.erl | 5 |
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. |