Browse code

tm: safety check for uas callid value when callid_matching is 1

- according to the documentation is for UA that cannot match the
responses when call-id is changed, but is not the case of self
generated requests
- closes FS#390

Alex Hermann authored on 20/02/2014 23:10:35 • Daniel-Constantin Mierla committed on 20/02/2014 23:10:35
Showing 1 changed files
... ...
@@ -984,6 +984,7 @@ int t_reply_matching( struct sip_msg *p_msg , int *p_branch )
984 984
 			continue;
985 985
 
986 986
 		if (cfg_get(tm, tm_cfg, callid_matching) && 
987
+				p_cell->uas.request && p_cell->uas.request->callid &&
987 988
 		        (p_msg->callid->body.len != p_cell->uas.request->callid->body.len ||
988 989
 		         memcmp(p_msg->callid->body.s, p_cell->uas.request->callid->body.s, p_msg->callid->body.len) != 0)
989 990
 		) {