1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 13:56:39 +02:00

Fixed a potential crash caused from accessing a uninitialized pointer when enforcing mlock

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2951 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-05-12 01:53:29 +00:00
parent baa119f2e2
commit bd2fda42cf
+2 -3
View File
@@ -289,7 +289,6 @@ void check_modes(Channel *c)
time_t t = time(NULL);
ChannelInfo *ci;
ChannelMode *cm;
ChannelModeParam *cmp;
std::map<char, ChannelMode *>::iterator it;
std::string param, ciparam;
@@ -340,7 +339,7 @@ void check_modes(Channel *c)
/* Add the eventual parameter and modify the Channel structure */
if (cm->Type == MODE_PARAM)
{
if (ci->GetParam(cmp->Name, param))
if (ci->GetParam(cm->Name, param))
c->SetMode(NULL, cm, param);
}
else
@@ -370,7 +369,7 @@ void check_modes(Channel *c)
/* Add the eventual parameter */
if (cm->Type == MODE_PARAM)
{
cmp = dynamic_cast<ChannelModeParam *>(cm);
ChannelModeParam *cmp = dynamic_cast<ChannelModeParam *>(cm);
if (!cmp->MinusNoArg)
{