mirror of
https://github.com/anope/anope.git
synced 2026-07-07 04:43:13 +02:00
Fixed a potential crash in os_szline because of a bad pointer passed to an event
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2967 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -176,7 +176,7 @@ class CommandOSSZLine : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnDelSXLine, OnDelSXLine(u, static_cast<SXLine *>(sglines.list[res]), SX_SZLINE));
|
||||
FOREACH_MOD(I_OnDelSXLine, OnDelSXLine(u, static_cast<SXLine *>(szlines.list[res]), SX_SZLINE));
|
||||
slist_delete(&szlines, res);
|
||||
notice_lang(Config.s_OperServ, u, OPER_SZLINE_DELETED, mask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user