GNUNET_CONTAINER_multihashmap32_get (c_peer_map->hash_map,
CustomPeerMap_size (c_peer_map));
GNUNET_assert (NULL != last_p);
+ last_index = GNUNET_CONTAINER_multipeermap_get (c_peer_map->peer_map, last_p);
+ GNUNET_assert (NULL != last_index);
+ GNUNET_assert (CustomPeerMap_size (c_peer_map) == *last_index);
GNUNET_CONTAINER_multihashmap32_put (c_peer_map->hash_map, *index, last_p,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST);
- last_index = GNUNET_CONTAINER_multipeermap_get (c_peer_map->peer_map, last_p);
GNUNET_CONTAINER_multihashmap32_remove_all (c_peer_map->hash_map, *last_index);
*last_index = *index;
}