queue = peer_get_first_message (peer);
if (NULL == queue)
{
- GNUNET_break (0); /* Core tmt_rdy should've been canceled */
+ GNUNET_assert (0); /* Core tmt_rdy should've been canceled */
return 0;
}
c = queue->c;
sizeof (GNUNET_PEER_Id) * path->length))
{
GNUNET_CONTAINER_DLL_remove (peer->path_head, peer->path_tail, iter);
- if (path != iter)
+ if (iter != path)
path_destroy (iter);
}
}
char *s;
s = path_2s (iter);
- LOG (GNUNET_ERROR_TYPE_DEBUG, " - destroying %s\n", s);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " - invalidating %s\n", s);
GNUNET_free (s);
- GNUNET_CONTAINER_DLL_remove (peer->path_head, peer->path_tail, iter);
- path_destroy (iter);
+ path_invalidate (iter);
}
}
}