Browse Source

registrar(k): set found if lookup for uri branch is successful

- the additional branches can hit all not found, but still a found on
  r-uri can happen
Daniel-Constantin Mierla 13 years ago
parent
commit
5ac76c501c
1 changed files with 3 additions and 0 deletions
  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;