From 6af41527f1fc6e885442d0b6917d6b7b2fcd7d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 6 Sep 2021 19:36:42 +0200 Subject: [PATCH] Fix some edge cases in handling ssl information from PROXY protocol When we fail to parse name of cipher suite from PROXY protocol just say that no ssl is used, instead of trying to fill that with data from connection between proxy and our server. --- deps/rabbit_common/src/rabbit_net.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbit_common/src/rabbit_net.erl b/deps/rabbit_common/src/rabbit_net.erl index 8ac59a2eb2..a2325c45be 100644 --- a/deps/rabbit_common/src/rabbit_net.erl +++ b/deps/rabbit_common/src/rabbit_net.erl @@ -112,7 +112,7 @@ proxy_ssl_info(Sock, {rabbit_proxy_socket, _, ProxyInfo}) -> end, CipherSuite = case ssl:str_to_suite(binary_to_list(Cipher)) of #{} = CS -> CS; - _ -> ssl_info(Sock) + _ -> nossl end, case {Proto, CipherSuite} of {nossl, _} -> ssl_info(Sock);