Module: sip-router
Branch: master
Commit: 6fc84149d62956192257c0fe9af728121f5d71e9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6fc8414…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)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);