From 3499c913a00d17e7f1ec28bf54b07aa4ded83ff7 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 21 Aug 2007 18:41:24 +0000 Subject: Fix for delete-when-we-shouldnt bug similar to what stskeeps found yesterday git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7787 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 3d472bf7a..0be0007d2 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -553,7 +553,8 @@ void ModuleSpanningTree::ConnectServer(Link* x) else { ServerInstance->SNO->WriteToSnoMask('l',"CONNECT: Error connecting \002%s\002: %s.",x->Name.c_str(),strerror(errno)); - delete newsocket; + if (ServerInstance->SocketCull.find(newsocket) == ServerInstance->SocketCull.end()) + ServerInstance->SocketCull[newsocket] = newsocket; Utils->DoFailOver(x); } } -- cgit v1.2.3