summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/enc_md5.c6
-rw-r--r--src/core/enc_none.c2
-rw-r--r--src/core/enc_old.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/core/enc_md5.c b/src/core/enc_md5.c
index d24a0bbad..c7c7ccff7 100644
--- a/src/core/enc_md5.c
+++ b/src/core/enc_md5.c
@@ -351,7 +351,7 @@ class EMD5 : public Module
char tmp[33];
if (size < 16)
- return EVENT_ERROR;
+ return EVENT_STOP;
MD5Init(&context);
MD5Update(&context, (unsigned char *)src, len);
@@ -398,8 +398,8 @@ class EMD5 : public Module
{
char buf[BUFSIZE];
- if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_ERROR)
- return EVENT_ERROR;
+ if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_STOP)
+ return EVENT_STOP;
if (memcmp(buf, password, 16) == 0)
{
return EVENT_ALLOW;
diff --git a/src/core/enc_none.c b/src/core/enc_none.c
index faebe3641..25f2fe216 100644
--- a/src/core/enc_none.c
+++ b/src/core/enc_none.c
@@ -34,7 +34,7 @@ class ENone : public Module
dest[len] = '\0';
return EVENT_STOP;
}
- return EVENT_ERROR;
+ return EVENT_STOP;
}
EventReturn OnEncryptInPlace(char *buf, int size)
diff --git a/src/core/enc_old.c b/src/core/enc_old.c
index e2169faac..399caa584 100644
--- a/src/core/enc_old.c
+++ b/src/core/enc_old.c
@@ -356,7 +356,7 @@ class EOld : public Module
int i;
if (size < 16)
- return EVENT_ERROR;
+ return EVENT_STOP;
memset(&context, 0, sizeof(context));
memset(&digest, 0, sizeof(digest));
@@ -399,8 +399,8 @@ class EOld : public Module
{
char buf[BUFSIZE];
- if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_ERROR)
- return EVENT_ERROR;
+ if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_STOP)
+ return EVENT_STOP;
if (memcmp(buf, password, 16) == 0)
{
return EVENT_ALLOW;