diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-27 18:08:36 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-27 18:08:36 +0000 |
commit | c2099cc2add266c6026dc133c6d83196e5e3f088 (patch) | |
tree | 86e8b208ecf242fe33e74971a6e3a70d7ae0d92e /src | |
parent | 785a427b006cf0858f04eb7439785de4ff4e1bac (diff) |
BUILD : 1.7.15 (1143) BUGS : 593 NOTES : Fixed mod_current_module not always NULL-ified in mod_run_cmd, resulting in weird segfaults in special situations
git-svn-id: svn://svn.anope.org/anope/trunk@1143 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@866 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c index 0159ee312..97603cc19 100644 --- a/src/commands.c +++ b/src/commands.c @@ -96,6 +96,7 @@ void do_run_cmd(char *service, User * u, Command * c, const char *cmd) } } else { mod_current_module_name = c->mod_name; + mod_current_module = NULL; if ((c->has_priv == NULL) || c->has_priv(u)) { retVal = c->routine(u); mod_current_module_name = NULL; @@ -103,6 +104,7 @@ void do_run_cmd(char *service, User * u, Command * c, const char *cmd) current = c->next; while (current && retVal == MOD_CONT) { mod_current_module_name = current->mod_name; + mod_current_module = NULL; retVal = current->routine(u); mod_current_module_name = NULL; current = current->next; |