&skey,
&iv,
pt);
+ off = compute_disk_offset (GNUNET_ntohll (dc->uri->data.chk.file_length),
+ sm->offset,
+ sm->depth,
+ dc->treedepth);
/* save to disk */
if ( (NULL != dc->handle) &&
( (sm->depth == dc->treedepth) ||
(0 == (dc->options & GNUNET_FS_DOWNLOAD_NO_TEMPORARIES)) ) )
{
- off = compute_disk_offset (GNUNET_ntohll (dc->uri->data.chk.file_length),
- sm->offset,
- sm->depth,
- dc->treedepth);
emsg = NULL;
#if DEBUG_DOWNLOAD
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
dn,
DIR_SEPARATOR_STR,
name);
+ GNUNET_free (dn);
ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace));
ret->rc = 1;
ret->key = GNUNET_CRYPTO_rsa_key_create_from_file (fn);
rating_change,
&nsid))
{
- GNUNET_PSEUDONYM_rank (cfg,
- &nsid,
- delta);
-
+ (void) GNUNET_PSEUDONYM_rank (cfg,
+ &nsid,
+ delta);
}
else
{
GNUNET_FS_PUBLISH_OPTION_NONE,
&post_advertising,
NULL);
+ GNUNET_FS_uri_destroy (ns_uri);
return;
}
}
msg);
err = 1;
GNUNET_FS_stop (fs);
+ GNUNET_free (msg);
return;
}
fprintf (stderr, "Starting keyword search...\n");
aluCB->cb_cls = aluc_cls;
aluCB->timeout = abs_timeout;
aluCB->client = client;
- GNUNET_CLIENT_transmit_and_get_response (client,
- &msg->header,
- timeout,
- GNUNET_YES,
- &address_response_processor,
- aluCB);
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_CLIENT_transmit_and_get_response (client,
+ &msg->header,
+ timeout,
+ GNUNET_YES,
+ &address_response_processor,
+ aluCB));
GNUNET_free (msg);
}