aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesh/test_mesh_small.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 6545472c9..cf647be56 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -518,12 +518,12 @@ topo_cb (void *cls,
518 if (p1 == pid1) 518 if (p1 == pid1)
519 { 519 {
520 p2 = GNUNET_PEER_search(second); 520 p2 = GNUNET_PEER_search(second);
521 GNUNET_assert(p2 < num_peers); 521 if (p2 == 0 || p2 > num_peers)
522 if (p2 == 0)
523 { 522 {
524 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 523 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
525 "***************** test: %s is UNKNOWN!?\n", 524 "***************** test: %s is UNKNOWN!? (%u)\n",
526 GNUNET_i2s(second)); 525 GNUNET_i2s(second),
526 p2);
527 return; 527 return;
528 } 528 }
529 mesh_peers[p2]++; 529 mesh_peers[p2]++;
@@ -536,12 +536,12 @@ topo_cb (void *cls,
536 if (p1 == pid1) 536 if (p1 == pid1)
537 { 537 {
538 p2 = GNUNET_PEER_search(first); 538 p2 = GNUNET_PEER_search(first);
539 GNUNET_assert(p2 < num_peers); 539 if (p2 == 0 || p2 > num_peers)
540 if (p2 == 0)
541 { 540 {
542 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 541 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
543 "***************** test: %s is UNKNOWN!?\n", 542 "***************** test: %s is UNKNOWN!? (%u)\n",
544 GNUNET_i2s(first)); 543 GNUNET_i2s(first),
544 p2);
545 return; 545 return;
546 } 546 }
547 mesh_peers[p2]++; 547 mesh_peers[p2]++;