Explorar o código

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

Daniel-Constantin Mierla %!s(int64=12) %!d(string=hai) anos
pai
achega
be0f77ec7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	reset_ruri_branch(msg);
 
-	for(i=0; i<nr_branches; i++) {
+	for(i=0; i<nr_branches_start; i++) {
 		crt = get_sip_branch(i);
 		/* it has to be a clean branch to do lookup for it */
 		if(crt->len <= 0 || crt->dst_uri_len > 0