diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | modules.c | 5 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 11 insertions, 1 deletions
@@ -9,6 +9,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004 05/24 A New NSNickTracking directive to provide nick tracking. [ #71] 05/21 A Auto enforce upon AKICK addition. [ #63] 05/21 A New file docs/OLDCHANGES contains all change history. [ #65] +06/12 F We check now for valid arguments in ModuleAddData(). [ #90] 06/12 F Unified kill_user function to handle all ircd protocols. [#101] 06/10 F Added check to see if MysqlUser and MysqlName were not null. [ #92] 06/09 F Corrected a number of spelling errors in en_us.l. [ #94] @@ -1765,6 +1765,11 @@ int moduleAddData(ModuleData * md[], char *key, char *value) ModuleDataItem *lastItem = NULL; index = CMD_HASH(mod_name); + if (!key || !value) { + alog("A module tried to use ModuleAddData() with one ore more NULL arguments... returning"); + return MOD_ERR_PARAMS; + } + for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) lastHash = current; diff --git a/version.log b/version.log index bb61e03bf..07168a89d 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="3" -VERSION_BUILD="189" +VERSION_BUILD="190" # $Log$ # +# BUILD : 1.7.3 (190) +# BUGS : 90 +# NOTES : We check now for valid arguments in ModuleAddData(). +# # BUILD : 1.7.3 (189) # BUGS : 95 # NOTES : Removed duplicate user kill on hybrid. |