From: Bart Polot Date: Fri, 4 Nov 2011 12:35:18 +0000 (+0000) Subject: Added check to catch #1871 X-Git-Tag: initial-import-from-subversion-38251~16060 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77b6ff6328120de950fd5d7802819882455a4da1;p=oweals%2Fgnunet.git Added check to catch #1871 --- 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, return; } + GNUNET_assert (peer_info->id == path->peers[path->length - 1]); for (aux = peer_info->path_head; aux != NULL; aux = aux->next) { l2 = path_get_length (aux);