diff options
-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. |