diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-15 18:33:29 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-15 18:33:29 +0000 |
commit | 9558df93a8adf29e8ab79e0dfbd6086bc77ff218 (patch) | |
tree | 8e93bdbccd19e343f900ff220a792c2b8a42e41f /main/loader.c | |
parent | 9ffccc9423fe00dc1b6e553cda5836fefd21fde5 (diff) |
Don't attempt to execute the reload callback for a module that returned
AST_MODULE_LOAD_DECLINE. This fixes a crash that was reported against
chan_console in trunk.
(closes issue #11953, reported by junky, fixed by me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103726 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/loader.c')
-rw-r--r-- | main/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/loader.c b/main/loader.c index d920c0c07..9b96c5bf6 100644 --- a/main/loader.c +++ b/main/loader.c @@ -578,7 +578,7 @@ int ast_module_reload(const char *name) if (name && resource_name_match(name, cur->resource)) continue; - if (!(cur->flags.running || cur->flags.declined)) + if (!cur->flags.running || cur->flags.declined) continue; if (!info->reload) { /* cannot be reloaded */ |