From f15b86c6187a460b92d3677f91bc194134dec5be Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 9 Jun 2008 17:09:53 +0000 Subject: Slight adjustment to our standard to avoid an obvious race condition found by anmaster and nenolod, only really reported by neno. Thanks :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9881 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index c00aee57e..ac385ceb5 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -83,9 +83,12 @@ class CommandStartTLS : public Command { if (!user->io) { + user->WriteNumeric(670, "%s :STARTTLS successful, go ahead with TLS handshake", user->nick.c_str()); user->io = Caller; Caller->OnRawSocketAccept(user->GetFd(), user->GetIPString(), user->GetPort()); } + else + user->WriteNumeric(671, "%s :STARTTLS failure", user->nick.c_str()); } return CMD_FAILURE; -- cgit v1.2.3