diff options
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r-- | src/fs/gnunet-service-fs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 05c7e2192..c22a5b5a9 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c | |||
@@ -1041,8 +1041,14 @@ hash_for_index_val (void *cls, | |||
1041 | "Hash mismatch trying to index file `%s' which does not have hash `%s'\n"), | 1041 | "Hash mismatch trying to index file `%s' which does not have hash `%s'\n"), |
1042 | isc->filename, | 1042 | isc->filename, |
1043 | GNUNET_h2s (&isc->file_id)); | 1043 | GNUNET_h2s (&isc->file_id)); |
1044 | env = GNUNET_MQ_msg (msg, | 1044 | |
1045 | GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED); | 1045 | const char *emsg = "hash mismatch"; |
1046 | const size_t msize = strlen(emsg) + 1; | ||
1047 | |||
1048 | env = GNUNET_MQ_msg_extra (msg, | ||
1049 | msize, | ||
1050 | GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED); | ||
1051 | memcpy((char*) &msg[1], emsg, msize); | ||
1046 | GNUNET_MQ_send (lc->mq, | 1052 | GNUNET_MQ_send (lc->mq, |
1047 | env); | 1053 | env); |
1048 | GNUNET_SERVICE_client_continue (lc->client); | 1054 | GNUNET_SERVICE_client_continue (lc->client); |