[sr-dev] git:master:0204232b: dmq: init peer structures
Daniel-Constantin Mierla
miconda at gmail.com
Tue Mar 15 10:00:53 CET 2022
Module: kamailio
Branch: master
Commit: 0204232ba1f229edb9c7e0080e98e9d3b2500672
URL: https://github.com/kamailio/kamailio/commit/0204232ba1f229edb9c7e0080e98e9d3b2500672
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/0204232ba1f229edb9c7e0080e98e9d3b2500672.diff
Patch: https://github.com/kamailio/kamailio/commit/0204232ba1f229edb9c7e0080e98e9d3b2500672.patch
---
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;
More information about the sr-dev
mailing list