1
0
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:
Adam-
2010-05-19 06:17:48 +00:00
parent 79c3a70ed7
commit 2b4d834f8c
+1 -1
View File
@@ -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);
}