]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't attempt to execute the reload callback for a module that returned
authorRussell Bryant <russell@russellbryant.com>
Fri, 15 Feb 2008 18:33:29 +0000 (18:33 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 15 Feb 2008 18:33:29 +0000 (18:33 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@103726 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/loader.c

index d920c0c07434335e95596950c9038d8f346d129f..9b96c5bf6fb5d8b24f4831e0d2d28a4af7819ef2 100644 (file)
@@ -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 */