From: Matthew Jordan Date: Thu, 9 Oct 2014 18:33:59 +0000 (+0000) Subject: res/res_phoneprov: Don't cancel Asterisk load on module load failure X-Git-Tag: 12.7.0-rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f60bd77640f3876cf44ac81d62ca7b7bf85e70dc;p=thirdparty%2Fasterisk.git res/res_phoneprov: Don't cancel Asterisk load on module load failure git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424985 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index 2e6c91a6ad..f3f975b714 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -1376,7 +1376,7 @@ static int load_module(void) profiles = ao2_container_alloc(MAX_PROFILE_BUCKETS, phone_profile_hash_fn, phone_profile_cmp_fn); if (!profiles) { ast_log(LOG_ERROR, "Unable to allocate profiles container.\n"); - return -1; + return AST_MODULE_LOAD_DECLINE; } http_routes = ao2_container_alloc(MAX_ROUTE_BUCKETS, http_route_hash_fn, http_route_cmp_fn); @@ -1424,7 +1424,7 @@ error: ao2_cleanup(users); delete_providers(); ao2_cleanup(providers); - return -1; + return AST_MODULE_LOAD_DECLINE; }