浏览代码

Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  registrar(k): set found if lookup for uri branch is successful
Peter Dunkley 13 年之前
父节点
当前提交
ca551f7cb3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules_k/registrar/lookup.c

+ 3 - 0
modules_k/registrar/lookup.c

@@ -353,6 +353,9 @@ int lookup_branches(sip_msg_t *msg, udomain_t *d)
 	if(nr_branches_start==0)
 		return ret;
 
+	if(ret>0)
+		found = 1;
+
 	/* backup r-uri branch */
 	ruri_b_uri = msg->new_uri;
 	ruri_b_dst_uri = msg->dst_uri;