Browse Source

registrar(k): use only pre-existing branches in lookup_branches()

Daniel-Constantin Mierla 12 years ago
parent
commit
be0f77ec7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/registrar/lookup.c

+ 1 - 1
modules_k/registrar/lookup.c

@@ -387,7 +387,7 @@ int lookup_branches(sip_msg_t *msg, udomain_t *d)
 	ruri_b_reg_id = msg->reg_id;
 	ruri_b_reg_id = msg->reg_id;
 	reset_ruri_branch(msg);
 	reset_ruri_branch(msg);
 
 
-	for(i=0; i<nr_branches; i++) {
+	for(i=0; i<nr_branches_start; i++) {
 		crt = get_sip_branch(i);
 		crt = get_sip_branch(i);
 		/* it has to be a clean branch to do lookup for it */
 		/* it has to be a clean branch to do lookup for it */
 		if(crt->len <= 0 || crt->dst_uri_len > 0
 		if(crt->len <= 0 || crt->dst_uri_len > 0