Module: kamailio
Branch: 5.2
Commit: 06610073bb490355d87a774a74716195d3c01192
URL:
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a7471619…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-07T15:36:15+01:00
acc_json: proper check if the mqueue name is set and the module can be loaded
(cherry picked from commit 7ce278d8accaaaa2b9c4b8fa349672826b5511f7)
---
Modified: src/modules/acc_json/acc_json_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a7471619…
Patch:
https://github.com/kamailio/kamailio/commit/06610073bb490355d87a774a7471619…
---
diff --git a/src/modules/acc_json/acc_json_mod.c b/src/modules/acc_json/acc_json_mod.c
index 908d7d0eb9..55f2bb11f9 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);
}