Module: kamailio
Branch: master
Commit: 84a540817f1aebcf1992f31b315b1b8e19cd5777
URL:
https://github.com/kamailio/kamailio/commit/84a540817f1aebcf1992f31b315b1b8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-01T09:11:12+02:00
dbq_usrloc: statc str vars when their pointer is used out of function
---
Modified: src/modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/84a540817f1aebcf1992f31b315b1b8…
Patch:
https://github.com/kamailio/kamailio/commit/84a540817f1aebcf1992f31b315b1b8…
---
diff --git a/src/modules/dmq_usrloc/usrloc_sync.c b/src/modules/dmq_usrloc/usrloc_sync.c
index 96d879e74f..9260bb28ab 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -324,9 +324,10 @@ int usrloc_dmq_send(str* body, dmq_node_t* node) {
static int usrloc_dmq_execute_action(srjson_t *jdoc_action, dmq_node_t* node) {
static ucontact_info_t ci;
srjson_t *it = NULL;
- unsigned int action, expires, cseq, flags, cflags, q, last_modified, methods, reg_id;
- str aor=STR_NULL, ruid=STR_NULL, c=STR_NULL, received=STR_NULL, path=STR_NULL,
- callid=STR_NULL, user_agent=STR_NULL, instance=STR_NULL;
+ unsigned int action, expires, cseq, flags, cflags, q, last_modified,
+ methods, reg_id;
+ str aor=STR_NULL, ruid=STR_NULL, received=STR_NULL, instance=STR_NULL;
+ static str c=STR_NULL, callid=STR_NULL, path=STR_NULL, user_agent=STR_NULL;
action = expires = cseq = flags = cflags = q = last_modified
= methods = reg_id = 0;