aboutsummaryrefslogtreecommitdiffstats
path: root/main/loader.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 21:57:16 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 21:57:16 +0000
commit3048972a9dbfe8c45160695e163bfbc61bc4eb4c (patch)
treeacf3636b06e7cc882ee9f74a25ff14e419b0b6f8 /main/loader.c
parentd4eff45834f49e6a095733107ce5db40eee08306 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@40854 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/loader.c')
-rw-r--r--main/loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/loader.c b/main/loader.c
index 79aca11b5..395711505 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
}