Skip to content

Commit

Permalink
tm: proper return code for replicated CANCEL
Browse files Browse the repository at this point in the history
Thanks go to 46Labs for reporting this
  • Loading branch information
razvancrainea committed Apr 26, 2019
1 parent 9f050c9 commit 5c7dd8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/tm/cluster.c
Expand Up @@ -441,15 +441,15 @@ static int tm_existing_trans(struct sip_msg *msg)
if (t == T_UNDEFINED) {
if (t_lookup_request(msg, 0) != -1) {
LM_DBG("e2e ACK or known CANCEL, do not replicate\n");
return 0;
return 1;
}
t = get_t(); /* fetch again the transaction */
}
if (t) {
LM_DBG("transaction already present here, no need to replicate\n");
return 0;
return 1;
}
return -1;
return 0;
}

/**
Expand Down

0 comments on commit 5c7dd8a

Please sign in to comment.