Skip to content

Commit

Permalink
domainpolicy: check if set dst uri fails
Browse files Browse the repository at this point in the history
(cherry picked from commit e238567)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent 792f8e1 commit 20a61ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/domainpolicy/domainpolicy.c
Expand Up @@ -1018,7 +1018,10 @@ int dp_apply_policy(struct sip_msg* _msg, char* _s1, char* _s2) {
duri_str.s = (char *)&(duri[0]);
duri_str.len = at - duri_str.s;
LM_DBG("new DURI is '%.*s'\n",duri_str.len, ZSW(duri_str.s));
set_dst_uri(_msg, &duri_str);
if(set_dst_uri(_msg, &duri_str)<0) {
LM_ERR("failed to se dst uri\n");
return -1;
}
/* dst_uri changes, so it makes sense to re-use the current uri for
forking */
ruri_mark_new(); /* re-use uri for serial forking */
Expand Down

0 comments on commit 20a61ab

Please sign in to comment.