Bladeren bron

- t_lookupOriginalT should never modifiy T / use set_t
- removed useless t_check() call in w_t_lookup_cancel()

Andrei Pelinescu-Onciul 19 jaren geleden
bovenliggende
commit
9f9b47007a
2 gewijzigde bestanden met toevoegingen van 0 en 5 verwijderingen
  1. 0 1
      modules/tm/t_lookup.c
  2. 0 4
      modules/tm/tm.c

+ 0 - 1
modules/tm/t_lookup.c

@@ -616,7 +616,6 @@ struct cell* t_lookupOriginalT(  struct sip_msg* p_msg )
 	 */
 	if (!p_msg->via1) {
 		LOG(L_ERR, "ERROR: t_lookupOriginalT: no via\n");
-		set_t(0);
 		return 0;
 	}
 	branch=p_msg->via1->branch;

+ 0 - 4
modules/tm/tm.c

@@ -658,10 +658,6 @@ inline static int w_t_lookup_cancel(struct sip_msg* msg, char* str, char* str2)
 {
 	struct cell *ret;
 	if (msg->REQ_METHOD==METHOD_CANCEL) {
-		if (t_check( msg , 0 )==-1) {
-			LOG(L_WARN, "WARNING: t_lookup_cancel() failed to find transaction\n");
-			return -1;
-		}
 		ret = t_lookupOriginalT( msg );
 		DBG("lookup_original: t_lookupOriginalT returned: %p\n", ret);
 		if (ret != T_NULL_CELL) {