Module: kamailio
Branch: master
Commit: 92db7b10f075e2b4e28545fc6c05d2001c2f198c
URL:
https://github.com/kamailio/kamailio/commit/92db7b10f075e2b4e28545fc6c05d20…
Author: alezzandro <alezzandro(a)gmail.com>
Committer: alezzandro <alezzandro(a)gmail.com>
Date: 2015-01-09T16:57:48+01:00
dispatcher: Moved init_state var declaration at beginning of ds_update_state function
---
Modified: modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/92db7b10f075e2b4e28545fc6c05d20…
Patch:
https://github.com/kamailio/kamailio/commit/92db7b10f075e2b4e28545fc6c05d20…
---
diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index 7cecc9f..ff3871f 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -2231,6 +2231,7 @@ int ds_update_state(sip_msg_t *msg, int group, str *address, int
state)
{
int i=0;
int old_state = 0;
+ int init_state = 0;
ds_set_t *idx = NULL;
if(_ds_list==NULL || _ds_list_nr<=0)
@@ -2259,7 +2260,7 @@ int ds_update_state(sip_msg_t *msg, int group, str *address, int
state)
idx->dlist[i].flags &= ~(DS_STATES_ALL);
/* we need the initial state for inactive counter */
- int init_state = state;
+ init_state = state;
if((state & DS_TRYING_DST) && (old_state & DS_INACTIVE_DST))
{