Index: /source/ariba/SideportListener.cpp
===================================================================
--- /source/ariba/SideportListener.cpp	(revision 5930)
+++ /source/ariba/SideportListener.cpp	(revision 5944)
@@ -110,7 +110,11 @@
 	if( overlay == NULL ) return false;
 
+	vector<NodeID> directnodes;
 	BOOST_FOREACH( LinkDescriptor* link, overlay->links ){
-		if( link->relaying && link->remoteNode == node && link->up)
-			return true;
+		if(link == NULL) continue;
+
+		BOOST_FOREACH(Node route, link->routeRecord){
+			if(route == node) return false;
+		}
 	}
 
