From 4af37470382f63f7e6a1cb179ced332fc2ccc510 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 18 Aug 2008 22:42:35 +0000 Subject: Work around OpenSSL retardation and braindamage: if you pass a different buffer to SSL_write() (location or contents/length), then the SSL_write() fails, which will kill the connection. Set ENABLE_PARTIAL_WRITE and ACCEPT_MOVING_WRITE_BUFFER to fix/work around this.. Thanks Namegduf. (add to contributors also) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10160 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/treesocket2.cpp') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index abce129ec..45e2d51dc 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1595,7 +1595,12 @@ int TreeSocket::OnIncomingConnection(int newsock, char* ip) if (!found) { - this->Instance->SNO->WriteToSnoMask('d',"Server connection from %s denied (no link blocks with that IP address", ip); + std::string err = "Server connection from "; + err += ip; + err += " denied (no link blocks with that IP address)"; + this->Instance->SNO->WriteToSnoMask('d', err); + err = "ERROR : + send(newsock, err.c_str(), err.length() close(newsock); return false; } -- cgit v1.3.1-10-gc9f91