aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-04 12:35:18 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-04 12:35:18 +0000
commit77b6ff6328120de950fd5d7802819882455a4da1 (patch)
treec6db7182d0a2c45a9301d78c7b8185da82a86126 /src/mesh
parent68f4e2eb8a4502baef703b6d7d2446ed4d47b6da (diff)
downloadgnunet-77b6ff6328120de950fd5d7802819882455a4da1.tar.gz
gnunet-77b6ff6328120de950fd5d7802819882455a4da1.zip
Added check to catch #1871
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 5acaf21b9..2d286e145 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -1579,6 +1579,7 @@ path_add_to_peer (struct MeshPeerInfo *peer_info,
1579 return; 1579 return;
1580 } 1580 }
1581 1581
1582 GNUNET_assert (peer_info->id == path->peers[path->length - 1]);
1582 for (aux = peer_info->path_head; aux != NULL; aux = aux->next) 1583 for (aux = peer_info->path_head; aux != NULL; aux = aux->next)
1583 { 1584 {
1584 l2 = path_get_length (aux); 1585 l2 = path_get_length (aux);