diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-09 17:09:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-09 17:09:53 +0000 |
commit | f15b86c6187a460b92d3677f91bc194134dec5be (patch) | |
tree | f8bbbbf46a60650af3d742c0bb2f083a5ef9b201 /src/modules/extra | |
parent | a0c075802c39bd70ef3aca8b0f56be0a1a4057a4 (diff) |
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
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |