memcpy (new_value, pdata->value, pdata->total_bytes);
memcpy (new_value+off, data, size);
GNUNET_free (pdata->value);
+ pdata->value = new_value;
pdata->total_bytes += size;
return MHD_YES;
{
if (GNUNET_YES == ctask->is_httppost)
{
- i = 0;
for (upload_data_iter = ctask->upload_data_head;
NULL != upload_data_iter;
upload_data_iter = upload_data_iter->next)
{
+ i = 0;
if (NULL != upload_data_iter->filename)
{
forms[i].option = CURLFORM_FILENAME;
if (!raw)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No private zone key file name specified in configuration!\n");
- shorten_key = NULL;
+ private_key = NULL;
}
else
{
return;
}
- if (NULL != shorten_name)
+ if ((NULL != shorten_name) && (NULL != shorten_zone) && (NULL != private_zone))
{
shorten_request = GNUNET_GNS_shorten_zone (gns, shorten_name,
private_zone,
if (NULL == namestore_handle)
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Failed to connect to namestore\n");
+ GNUNET_free (web);
end_badly_now () ;
return;
}
&alice_keyfile))
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Failed to get key from cfg\n");
+ GNUNET_free (web);
end_badly_now () ;
return;
}