const struct GNUNET_FS_FileInformation *p,
uint64_t offset)
{
- pi->value.publish.sc = sc;
+ pi->value.publish.pc = sc;
pi->value.publish.fi = p;
pi->value.publish.cctx
= p->client_info;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Error uploading KSK blocks: %s\n",
emsg);
-#end
+#endif
signal_publish_error (p, pc, emsg);
GNUNET_FS_file_information_sync_ (p);
GNUNET_FS_publish_sync_ (pc);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Error during tree walk: %s\n",
emsg);
-#end
+#endif
GNUNET_asprintf (&p->emsg,
_("Upload failed: %s"),
emsg);
fn = GNUNET_STRINGS_filename_expand (p->filename);
GNUNET_assert (fn != NULL);
slen = strlen (fn) + 1;
- if (slen > GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof(struct IndexStartMessage))
+ if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof(struct IndexStartMessage))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
_("Can not index file `%s': %s. Will try to insert instead.\n"),