summaryrefslogtreecommitdiff
path: root/src/rabbit_ssl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_ssl.erl')
-rw-r--r--src/rabbit_ssl.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl
index 535f9d38..f44dbc3e 100644
--- a/src/rabbit_ssl.erl
+++ b/src/rabbit_ssl.erl
@@ -123,10 +123,11 @@ extract_ssl_values_list([]) ->
%% Convert a proplist to a RFC4514 subject string.
format_ssl_subject(RDNs) ->
- rabbit_misc:intersperse(
- ",", lists:reverse(
- [escape_ssl_string(format_ssl_type_and_value(T, V), start)
- || {T, V} <- RDNs])).
+ lists:flatten(
+ rabbit_misc:intersperse(
+ ",", lists:reverse(
+ [escape_ssl_string(format_ssl_type_and_value(T, V), start)
+ || {T, V} <- RDNs]))).
%% Escape a string as per RFC4514.
escape_ssl_string([], _) ->