From 88e7c2cb0fc2e91f647a52dc6e274b3e3205743b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 4 Sep 2006 23:29:33 +0000 Subject: Check for failover pointing at self. This is an obvious thing to check for and prevent :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5142 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 395644772..7ac65dbc3 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -4084,6 +4084,11 @@ class ModuleSpanningTree : public Module { if (x->FailOver.length()) { + if (x->FailOver == x->Name) + { + ServerInstance->SNO->WriteToSnoMask('l',"FAILOVER: Some muppet configured the failover for server \002%s\002 to point at itself. Not following it!", x->Name.c_str()); + return; + } Link* TryThisOne = this->FindLink(x->FailOver.c_str()); if (TryThisOne) { -- cgit v1.2.3