diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-26 20:02:27 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-26 20:02:27 +0000 |
commit | df53774db69f044643962a9f6af6290b3d2ee71d (patch) | |
tree | 3713c05a6de35fa07fef058395c44f56f2b0e69d /apps/app_authenticate.c | |
parent | 4d04a3258e50f0c5d5103bd9eef6cec335d93056 (diff) |
Use defined return values in load_module in more places.
(closes issue #11096)
Patches:
pbx_config.c.patch uploaded by moy (license 222)
pbx_dundi.c.patch uploaded by moy (license 222)
pbx_gtkconsole.c.patch uploaded by moy (license 222)
pbx_loopback.c.patch uploaded by moy (license 222)
pbx_realtime.c.patch uploaded by moy (license 222)
pbx_spool.c.patch uploaded by moy (license 222)
app_adsiprog.c.patch uploaded by moy (license 222)
app_alarmreceiver.c.patch uploaded by moy (license 222)
app_amd.c.patch uploaded by moy (license 222)
app_authenticate.c.patch uploaded by moy (license 222)
app_cdr.c.patch uploaded by moy (license 222)
app_zapateller.c.patch uploaded by moy (license 222)
app_zapbarge.c.patch uploaded by moy (license 222)
app_zapras.c.patch uploaded by moy (license 222)
app_zapscan.c.patch uploaded by moy (license 222)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94806 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_authenticate.c')
-rw-r--r-- | apps/app_authenticate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 1a49bf337..3a3e7582e 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -204,7 +204,9 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, auth_exec, synopsis, descrip); + if (ast_register_application(app, auth_exec, synopsis, descrip)) + return AST_MODULE_LOAD_FAILURE; + return AST_MODULE_LOAD_SUCCESS; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Authentication Application"); |