summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/modules/ns_maxemail.c9
-rw-r--r--version.log6
3 files changed, 14 insertions, 2 deletions
diff --git a/Changes b/Changes
index db12fdf3b..55717387c 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
Anope Version S V N
-------------------
+05/05 F Segfault in ns_maxemail when passing wrong param count. [ #00]
05/05 F ULined servers still got their modes removed with SecureOps on. [ #00]
05/05 F Missing access checks when removing modes due to SecureOps. [#366]
Provided by Anope Dev. <dev@anope.org> - 2005
diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c
index ac51d3d5c..12f7be635 100644
--- a/src/modules/ns_maxemail.c
+++ b/src/modules/ns_maxemail.c
@@ -116,6 +116,8 @@ int my_ns_register(User * u)
cur_buffer = moduleGetLastBuffer();
email = myStrGetToken(cur_buffer, ' ', 1);
+ if (!email)
+ return MOD_CONT;
ret = check_email_limit_reached(email, u);
free(email);
@@ -132,7 +134,10 @@ int my_ns_set(User * u)
cur_buffer = moduleGetLastBuffer();
set = myStrGetToken(cur_buffer, ' ', 0);
-
+
+ if (!set)
+ return MOD_CONT;
+
if (stricmp(set, "email") != 0) {
free(set);
return MOD_CONT;
@@ -140,6 +145,8 @@ int my_ns_set(User * u)
free(set);
email = myStrGetToken(cur_buffer, ' ', 1);
+ if (!email)
+ return MOD_CONT;
ret = check_email_limit_reached(email, u);
free(email);
diff --git a/version.log b/version.log
index 660629bf6..eb17effb1 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="9"
-VERSION_BUILD="774"
+VERSION_BUILD="775"
# $Log$
#
+# BUILD : 1.7.9 (775)
+# BUGS :
+# NOTES : Fixed possible segfaults in ns_maxemail
+#
# BUILD : 1.7.9 (774)
# BUGS : 366
# NOTES : Updated chan_set_correct_modes() to work ok with U:Lined servers and added checking for OPDEOPME next to AUTOOP levels (same for the other modes)