Module: kamailio
Branch: master
Commit: b27c38b71c09e6763e8412b7e33aab77af3dfc76
URL:
https://github.com/kamailio/kamailio/commit/b27c38b71c09e6763e8412b7e33aab7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-08T16:10:00+01:00
dmq: initialize peer_list to NULL by default
- credits to Olle E. Jonansson for testing and reports
---
Modified: modules/dmq/dmq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b27c38b71c09e6763e8412b7e33aab7…
Patch:
https://github.com/kamailio/kamailio/commit/b27c38b71c09e6763e8412b7e33aab7…
---
diff --git a/modules/dmq/dmq.c b/modules/dmq/dmq.c
index 6d53baf..c17607a 100644
--- a/modules/dmq/dmq.c
+++ b/modules/dmq/dmq.c
@@ -76,7 +76,7 @@ sl_api_t slb;
/** module variables */
str dmq_request_method = str_init("KDMQ");
dmq_worker_t* workers;
-dmq_peer_list_t* peer_list;
+dmq_peer_list_t* peer_list = 0;
/* the list of dmq servers */
dmq_node_list_t* node_list;
// the dmq module is a peer itself for receiving notifications regarding nodes