summaryrefslogtreecommitdiff
path: root/src/core/enc_old.c
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-01 17:36:48 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-01 17:36:48 +0000
commitd81068abc4e16e0ea64db84625bf34c51af96282 (patch)
tree8d629ee7482af44239df3f06fd0c83fcd71182ea /src/core/enc_old.c
parent5a9dd79ae816e2857dea8eaa5e2801742e1be1fa (diff)
fix for bug #1087. thanks to Obi_Wan for reporting and testing.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2350 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/enc_old.c')
-rw-r--r--src/core/enc_old.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/enc_old.c b/src/core/enc_old.c
index 399caa584..c70ed23b1 100644
--- a/src/core/enc_old.c
+++ b/src/core/enc_old.c
@@ -367,14 +367,14 @@ class EOld : public Module
for (i = 0; i < 32; i += 2)
dest[i / 2] = XTOI(digest[i]) << 4 | XTOI(digest[i + 1]);
- if(debug)
+ if(debug)
{
memset(tmp,0,33);
binary_to_hex((unsigned char *)dest,tmp,16);
alog("enc_old: Converted [%s] to [%s]",src,tmp);
}
- return EVENT_STOP;
+ return EVENT_ALLOW;
}
@@ -387,8 +387,11 @@ class EOld : public Module
EventReturn OnEncryptCheckLen(int passlen, int bufsize)
{
if (bufsize < 16)
+ {
fatal("enc_old: old_check_len(): buffer too small (%d)", bufsize);
- return EVENT_STOP;
+ return EVENT_STOP;
+ }
+ return EVENT_ALLOW;
}
@@ -405,12 +408,12 @@ class EOld : public Module
{
return EVENT_ALLOW;
}
- return EVENT_CONTINUE;
+ return EVENT_STOP;
}
EventReturn OnDecrypt(const char *src, char *dest, int size)
{
- return EVENT_CONTINUE; // 0
+ return EVENT_STOP; // 0
}
};