Module: kamailio
Branch: master
Commit: 0204232ba1f229edb9c7e0080e98e9d3b2500672
URL:
https://github.com/kamailio/kamailio/commit/0204232ba1f229edb9c7e0080e98e9d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-15T10:00:41+01:00
dmq: init peer structures
---
Modified: src/modules/dmq/dmq_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0204232ba1f229edb9c7e0080e98e9d…
Patch:
https://github.com/kamailio/kamailio/commit/0204232ba1f229edb9c7e0080e98e9d…
---
diff --git a/src/modules/dmq/dmq_funcs.c b/src/modules/dmq/dmq_funcs.c
index aeea4a83e3..a71e0a85a3 100644
--- a/src/modules/dmq/dmq_funcs.c
+++ b/src/modules/dmq/dmq_funcs.c
@@ -300,8 +300,8 @@ int ki_dmq_send_message(sip_msg_t *msg, str *peer_str, str *to_str,
dmq_peer_t *destination_peer = find_peer(*peer_str);
if(!destination_peer) {
+ dmq_peer_t new_peer = {0};
LM_INFO("cannot find peer %.*s\n", peer_str->len, peer_str->s);
- dmq_peer_t new_peer;
new_peer.callback = empty_peer_callback;
new_peer.description.s = "";
new_peer.description.len = 0;
@@ -370,9 +370,9 @@ int ki_dmq_bcast_message(sip_msg_t *msg, str *peer_str, str
*body_str,
dmq_peer_t *destination_peer = find_peer(*peer_str);
if(!destination_peer) {
+ dmq_peer_t new_peer = {0};
LM_INFO("cannot find peer %.*s - adding it.\n", peer_str->len,
peer_str->s);
- dmq_peer_t new_peer;
new_peer.callback = empty_peer_callback;
new_peer.description.s = "";
new_peer.description.len = 0;