Added check to catch #1871
authorBart Polot <bart@net.in.tum.de>
Fri, 4 Nov 2011 12:35:18 +0000 (12:35 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 4 Nov 2011 12:35:18 +0000 (12:35 +0000)
src/mesh/gnunet-service-mesh.c

index 5acaf21b93b6eee1e23390787f6d8d0715904c28..2d286e145afc36b1409d5911bc21cec8648aa7df 100644 (file)
@@ -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);