summaryrefslogtreecommitdiff
path: root/main/loader.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-08-22 21:57:16 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-08-22 21:57:16 +0000
commit804f49e2c9953acfd58a09897f25afa4695014e7 (patch)
treeacf3636b06e7cc882ee9f74a25ff14e419b0b6f8 /main/loader.c
parent74fb27c15f35c91bfc93b339d81904e31a17fb47 (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: https://origsvn.digium.com/svn/asterisk/trunk@40854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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
}