From 1922bf21f0e945515ab1a41ca81a462e9b1aa55e Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 5 May 2011 18:59:33 +1000 Subject: [PATCH] Do not try to start TLS twice when front-end socket is used --- src/ejabberd_c2s.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index e87128949..2566dec1b 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -246,7 +246,7 @@ init([{SockMod, Socket}, Opts, FSMLimitOpts]) -> false -> Socket1 = if - TLSEnabled -> + TLSEnabled andalso SockMod /= ejabberd_frontend_socket -> SockMod:starttls(Socket, TLSOpts); true -> Socket