mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Fix a regression from fcb51634669e6ed588e42f2072c6f910e267126f ("fix uid collision on spanningtree reload") caused by access-after-free.
Thanks to transnet for the report. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11533 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
14ec488aeb
commit
01dbd2658f
@ -176,8 +176,10 @@ SpanningTreeUtilities::~SpanningTreeUtilities()
|
||||
sock->Close();
|
||||
}
|
||||
}
|
||||
delete TreeRoot;
|
||||
|
||||
// This avoids a collision on reload
|
||||
ServerUser->uuid = TreeRoot->GetID();
|
||||
delete TreeRoot;
|
||||
delete ServerUser;
|
||||
ServerInstance->BufferedSocketCull();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user