From: Kevin P. Fleming Date: Tue, 22 Aug 2006 21:57:16 +0000 (+0000) Subject: when loadable modules are disabled, if someone tries to load a module that does not... X-Git-Tag: 1.4.0-beta1~317 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=804f49e2c9953acfd58a09897f25afa4695014e7;p=thirdparty%2Fasterisk.git when loadable modules are disabled, if someone tries to load a module that does not exist, don't dereference a NULL pointer, just stop trying to load it... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40854 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/loader.c b/main/loader.c index 79aca11b56..3957115053 100644 --- a/main/loader.c +++ b/main/loader.c @@ -587,6 +587,8 @@ static enum ast_module_load_result load_resource(const char *resource_name, unsi return AST_MODULE_LOAD_SKIP; } } +#else + return AST_MODULE_LOAD_DECLINE; #endif }