Browse code

sip: c/f: fixed copy-paste error

Raphael Coeffic authored on 26/11/2013 14:29:21
Showing 1 changed files
... ...
@@ -1295,7 +1295,7 @@ int _trans_layer::send_request(sip_msg* msg, trans_ticket* tt,
1295 1295
 	p_msg = NULL;
1296 1296
 
1297 1297
 	if(default_bl_ttl) {
1298
-	    tr_blacklist::instance()->insert(&t->msg->remote_ip,
1298
+	    tr_blacklist::instance()->insert(&tt->_t->msg->remote_ip,
1299 1299
 					     default_bl_ttl,"503");
1300 1300
 	}
1301 1301
 	tt->_bucket->unlock();
... ...
@@ -2687,7 +2687,7 @@ int _trans_layer::try_next_ip(trans_bucket* bucket, sip_trans* tr,
2687 2687
 	ERROR("Error from transport layer\n");
2688 2688
 
2689 2689
 	if(default_bl_ttl) {
2690
-	    tr_blacklist::instance()->insert(&t->msg->remote_ip,
2690
+	    tr_blacklist::instance()->insert(&tr->msg->remote_ip,
2691 2691
 					     default_bl_ttl,"503");
2692 2692
 	}
2693 2693