Module: sip-router Branch: master Commit: 6fc84149d62956192257c0fe9af728121f5d71e9 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6fc84149...
Author: Henning Westerholt henning.westerholt@1und1.de Committer: Henning Westerholt henning.westerholt@1und1.de Date: Tue Apr 21 18:23:51 2009 +0200
fix crash in carrierroute related to failed config file loading
---
modules/carrierroute/cr_config.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/carrierroute/cr_config.c b/modules/carrierroute/cr_config.c index 642f911..87969fa 100644 --- a/modules/carrierroute/cr_config.c +++ b/modules/carrierroute/cr_config.c @@ -104,6 +104,10 @@ static cfg_t * parse_config(void) { };
cfg = cfg_init(opts, CFGF_NONE); + if (cfg == NULL) { + LM_ERR("could not initialize configuration\n"); + return NULL; + }
cfg_set_error_function(cfg, conf_error);
On Tuesday 21 April 2009, Henning Westerholt wrote:
fix crash in carrierroute related to failed config file loading [..]
This happens probably because of some overlapping symbols in sr core and the libconfuse library, which is used from cr.
cfg/cfg_struct.h 122:int cfg_init(void); [..] modules/carrierroute/cr_config.c 106: cfg = cfg_init(opts, CFGF_NONE);
How do resolve this issue, is it ok when i rename the core function?
Cheers,
Henning