mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
drop generic items with inconsistent peer id vs. tunnel directions
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6436 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c45f2776ed
commit
8ab9c59a9f
@ -1008,7 +1008,15 @@ void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
|||||||
else if(item->PeerId() == tunnel.local_src)
|
else if(item->PeerId() == tunnel.local_src)
|
||||||
item->setTravelingDirection(RsTurtleGenericTunnelItem::DIRECTION_SERVER) ;
|
item->setTravelingDirection(RsTurtleGenericTunnelItem::DIRECTION_SERVER) ;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
std::cerr << "(EE) critical error in p3turtle::routeGenericTunnelItem(): item mismatches tunnel src/dst ids." << std::endl;
|
std::cerr << "(EE) critical error in p3turtle::routeGenericTunnelItem(): item mismatches tunnel src/dst ids." << std::endl;
|
||||||
|
std::cerr << "(EE) tunnel.local_src = " << tunnel.local_src << std::endl;
|
||||||
|
std::cerr << "(EE) tunnel.local_dst = " << tunnel.local_dst << std::endl;
|
||||||
|
std::cerr << "(EE) item->PeerId() = " << item->PeerId() << std::endl;
|
||||||
|
std::cerr << "(EE) Deleting this item." << std::endl ;
|
||||||
|
delete item ;
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
// Let's figure out whether this packet is for us or not.
|
// Let's figure out whether this packet is for us or not.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user