Browse Source

Merge pull request #1776 from balajeesv/routeissue

topoh: fixed unmask route issue, if maksing fails for one of the routes
Daniel-Constantin Mierla 6 years ago
parent
commit
5f3e430fa7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/modules/topoh/th_msg.c

+ 4 - 1
src/modules/topoh/th_msg.c

@@ -709,7 +709,10 @@ int th_unmask_route(sip_msg_t *msg)
 
 				if(th_get_uri_param_value(&rr->nameaddr.uri, &th_uparam_name,
 							&eval)<0 || eval.len<=0)
-					return -1;
+				{
+					rr = rr->next;
+					continue;
+				}
 
 				out.s = th_mask_decode(eval.s, eval.len,
 							&th_uparam_prefix, 0, &out.len);