Browse code

bug_fix: to-tag matching in ACK

Jiri Kuthan authored on 29/08/2002 22:41:34
Showing 1 changed files
... ...
@@ -181,8 +181,11 @@ int t_lookup_request( struct sip_msg* p_msg , int leave_new_locked )
181 181
 			if (!EQ_STR(from)) continue;
182 182
 			if (memcmp(get_to(t_msg)->uri.s, get_to(p_msg)->uri.s,
183 183
 				get_to(t_msg)->uri.len)!=0) continue;
184
-			if (p_cell->uas.to_tag.len!=0 /* to-tags empty */
185
-				|| memcmp(p_cell->uas.to_tag.s, get_to(p_msg)->tag_value.s,
184
+			if (
185
+#ifdef _BUG
186
+				p_cell->uas.to_tag.len!=0 /* to-tags empty */ || 
187
+#endif
188
+				memcmp(p_cell->uas.to_tag.s, get_to(p_msg)->tag_value.s,
186 189
 				p_cell->uas.to_tag.len)!=0) continue;
187 190
 	
188 191
 			/* ok, now only r-uri or via can mismatch; they must match