Module: kamailio Branch: master Commit: 7ce278d8accaaaa2b9c4b8fa349672826b5511f7 URL: https://github.com/kamailio/kamailio/commit/7ce278d8accaaaa2b9c4b8fa34967282...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-01-07T15:35:34+01:00
acc_json: proper check if the mqueue name is set and the module can be loaded
---
Modified: src/modules/acc_json/acc_json_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/7ce278d8accaaaa2b9c4b8fa34967282... Patch: https://github.com/kamailio/kamailio/commit/7ce278d8accaaaa2b9c4b8fa34967282...
---
diff --git a/src/modules/acc_json/acc_json_mod.c b/src/modules/acc_json/acc_json_mod.c index ee3f84bf6b..f1ce4e71f3 100644 --- a/src/modules/acc_json/acc_json_mod.c +++ b/src/modules/acc_json/acc_json_mod.c @@ -115,7 +115,8 @@ static int mod_init(void) if(output_mqueue_str && (load_mq_api(&mq_api) != 0)) { LM_ERR("can't load mqueue module API, disabling json acc to mqueue\n"); output_mqueue_str = NULL; - } else { + } + if(output_mqueue_str) { q_name.s = output_mqueue_str; q_name.len = strlen(output_mqueue_str); }