diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-05 16:34:41 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-05 16:34:41 +0000 |
commit | 7a731e504b9bbb791b6e50701d5d12e9e37833cf (patch) | |
tree | 232473d2b49303fa136105935c16373a2b742ef7 | |
parent | 94963049525556bc7fdbebd6548b248c5ae3831c (diff) |
BUILD : 1.7.9 (775) BUGS : NOTES : Fixed possible segfaults in ns_maxemail
git-svn-id: svn://svn.anope.org/anope/trunk@775 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@535 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/modules/ns_maxemail.c | 9 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 14 insertions, 2 deletions
@@ -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) |