aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/treesocket2.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-08-18 22:42:35 +0000
committerGravatar w00t2008-08-18 22:42:35 +0000
commit4af37470382f63f7e6a1cb179ced332fc2ccc510 (patch)
tree730b95b6cc2400f0927d518df4360f21ce130a92 /src/modules/m_spanningtree/treesocket2.cpp
parentIncrease the size of the matrix for map drawing to 250x250 (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp7
1 files changed, 6 insertions, 1 deletions
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;
}