summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:48 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:48 +0000
commit2b4d834f8c5716a7b9309ad2e4eb5d00b48742e7 (patch)
tree1381ff46540cc58f46713bee74ae61c91ca70976
parent79c3a70ed75d29987b35d087ef739e17169ee57c (diff)
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
-rw-r--r--src/core/os_szline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/os_szline.c b/src/core/os_szline.c
index b5946150b..c50ba7334 100644
--- a/src/core/os_szline.c
+++ b/src/core/os_szline.c
@@ -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);
}