Module: sip-router
Branch: master
Commit: ea6354c53c8871e4e117b7434645ab4fee811612
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ea6354c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jun 6 15:58:58 2013 +0200
acc_radius: exit at startup if radius_config is not set
---
modules/acc_radius/acc_radius_mod.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/acc_radius/acc_radius_mod.c b/modules/acc_radius/acc_radius_mod.c
index 07f39ff..11f3115 100644
--- a/modules/acc_radius/acc_radius_mod.c
+++ b/modules/acc_radius/acc_radius_mod.c
@@ -125,8 +125,10 @@ struct module_exports exports= {
static int mod_init( void )
{
- if (radius_config==NULL || radius_config[0]=='\0')
- return 0;
+ if (radius_config==NULL || radius_config[0]=='\0') {
+ LM_ERR("radius config file not set\n");
+ return -1;
+ }
/* bind the ACC API */
if (acc_load_api(&accb)<0) {