summaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-24 14:33:30 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-24 14:33:30 +0000
commit6fd34d4e09d94710855d4a712474ed51f3ffdb6f (patch)
treeb920f5b15ba432df73c6d6c65a18e5c199749745 /src/mesh
parentf387e75c669b0963e7865fdda5958791bac34363 (diff)
Don't die on unknown peer
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/test_mesh_small.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index e77ddcf15..9f075638a 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -524,7 +524,6 @@ topo_cb (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"***************** test: %s is UNKNOWN!?\n",
GNUNET_i2s(second));
- GNUNET_break (0);
return;
}
mesh_peers[p2]++;
@@ -538,7 +537,13 @@ topo_cb (void *cls,
{
p2 = GNUNET_PEER_search(first);
GNUNET_assert(p2 < num_peers);
- GNUNET_assert(p2 > 0);
+ if (p2 == 0)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "***************** test: %s is UNKNOWN!?\n",
+ GNUNET_i2s(second));
+ return;
+ }
mesh_peers[p2]++;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"***************** test: %s IS a neighbor\n",