mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Fix access-after-free on rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11534 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
01dbd2658f
commit
d9dcf0459c
@ -706,8 +706,8 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current)
|
||||
ClassMap::iterator oldMask = oldBlocksByMask.find(typeMask);
|
||||
if (oldMask != oldBlocksByMask.end())
|
||||
{
|
||||
oldBlocksByMask.erase(oldMask);
|
||||
ConnectClass* old = oldMask->second;
|
||||
oldBlocksByMask.erase(oldMask);
|
||||
old->Update(me);
|
||||
delete me;
|
||||
me = old;
|
||||
|
Loading…
x
Reference in New Issue
Block a user