diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-05 13:17:01 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-05 13:17:01 +0200 |
commit | 6a76bdb0117436af78b2f1137137770793c75436 (patch) | |
tree | 2fc496ccdd38692053c5ceed2f6c2cf0a6ecc857 /src | |
parent | 1f74e543bda13e761e7fc6b161e8f736a3dd6042 (diff) |
m_spanningtree Fix fake direction detection for commands
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 882596b81..d16e55702 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -284,8 +284,8 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, * a valid SID or a valid UUID, so that invalid UUID or SID never makes it * to the higher level functions. -- B */ - TreeServer* route_back_again = TreeServer::Get(who)->GetRoute(); - if (route_back_again->GetSocket() != this) + TreeServer* const server = TreeServer::Get(who); + if (server->GetSocket() != this) { ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Protocol violation: Fake direction '%s' from connection '%s'", prefix.c_str(), linkID.c_str()); return; @@ -340,7 +340,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, } if (res == CMD_SUCCESS) - Utils->RouteCommand(route_back_again, cmdbase, params, who); + Utils->RouteCommand(server->GetRoute(), cmdbase, params, who); } void TreeSocket::OnTimeout() |