summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 09a3b2c56..10da3222c 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -572,7 +572,7 @@ class TreeSocket : public InspSocket
this->LinkState = WAIT_AUTH_1;
}
- void InitAES(std::string key)
+ void InitAES(std::string key,std::string SName)
{
if (key == "")
return;
@@ -588,11 +588,6 @@ class TreeSocket : public InspSocket
}
else
{
- std::string SName = myhost;
- if (InboundServerName != "")
- {
- SName = InboundServerName;
- }
WriteOpers("\2AES\2: Initialized %d bit encryption to server %s",keylength*8,SName.c_str());
ctx->MakeKey(key.c_str(), "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", keylength, keylength);
@@ -618,7 +613,7 @@ class TreeSocket : public InspSocket
if (x->EncryptionKey != "")
{
this->WriteLine("AES "+Srv->GetServerName());
- this->InitAES(x->EncryptionKey);
+ this->InitAES(x->EncryptionKey,x->Name);
}
/* found who we're supposed to be connecting to, send the neccessary gubbins. */
this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+Srv->GetServerDescription());
@@ -1719,7 +1714,7 @@ class TreeSocket : public InspSocket
{
if ((x->EncryptionKey != "") && (x->Name == sserv))
{
- this->InitAES(x->EncryptionKey);
+ this->InitAES(x->EncryptionKey,sserv);
}
}
return true;