aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_small.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-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,
524 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 524 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
525 "***************** test: %s is UNKNOWN!?\n", 525 "***************** test: %s is UNKNOWN!?\n",
526 GNUNET_i2s(second)); 526 GNUNET_i2s(second));
527 GNUNET_break (0);
528 return; 527 return;
529 } 528 }
530 mesh_peers[p2]++; 529 mesh_peers[p2]++;
@@ -538,7 +537,13 @@ topo_cb (void *cls,
538 { 537 {
539 p2 = GNUNET_PEER_search(first); 538 p2 = GNUNET_PEER_search(first);
540 GNUNET_assert(p2 < num_peers); 539 GNUNET_assert(p2 < num_peers);
541 GNUNET_assert(p2 > 0); 540 if (p2 == 0)
541 {
542 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
543 "***************** test: %s is UNKNOWN!?\n",
544 GNUNET_i2s(second));
545 return;
546 }
542 mesh_peers[p2]++; 547 mesh_peers[p2]++;
543 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 548 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
544 "***************** test: %s IS a neighbor\n", 549 "***************** test: %s IS a neighbor\n",