else /* on-demand encoded DBLOCK */
{
size = sizeof(struct OnDemandBlock);
- odb.offset = offset;
+ odb.offset = GNUNET_htonll (offset);
odb.file_id = uc->file_id;
data = &odb;
}
{
struct GNUNET_FS_UnindexContext *uc = cls;
- GNUNET_CLIENT_disconnect (uc->client);
+ GNUNET_CLIENT_disconnect (uc->client, GNUNET_NO);
uc->client = NULL;
if (uc->state != UNINDEX_STATE_FS_NOTIFY)
{