summaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_indexing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-04 22:04:00 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-04 22:04:00 +0000
commit0663125e0f41ee120736944ef153074f6251b957 (patch)
tree975543b6194c87b076547f63d8c344b87e21e75a /src/fs/gnunet-service-fs_indexing.c
parent4b78e6983509f2078c4f52888187436c0a7b6aeb (diff)
downloadgnunet-0663125e0f41ee120736944ef153074f6251b957.tar.gz
gnunet-0663125e0f41ee120736944ef153074f6251b957.zip
bugfixes, more tests
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r--src/fs/gnunet-service-fs_indexing.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c
index 525da1a91..5bae211ba 100644
--- a/src/fs/gnunet-service-fs_indexing.c
+++ b/src/fs/gnunet-service-fs_indexing.c
@@ -322,7 +322,7 @@ GNUNET_FS_handle_index_start (void *cls,
322 const struct GNUNET_MessageHeader *message) 322 const struct GNUNET_MessageHeader *message)
323{ 323{
324 const struct IndexStartMessage *ism; 324 const struct IndexStartMessage *ism;
325 const char *fn; 325 char *fn;
326 uint16_t msize; 326 uint16_t msize;
327 struct IndexInfo *ii; 327 struct IndexInfo *ii;
328 size_t slen; 328 size_t slen;
@@ -341,7 +341,7 @@ GNUNET_FS_handle_index_start (void *cls,
341 return; 341 return;
342 } 342 }
343 ism = (const struct IndexStartMessage*) message; 343 ism = (const struct IndexStartMessage*) message;
344 fn = (const char*) &ism[1]; 344 fn = GNUNET_STRINGS_filename_expand ((const char*) &ism[1]);
345 dev = ntohl (ism->device); 345 dev = ntohl (ism->device);
346 ino = GNUNET_ntohll (ism->inode); 346 ino = GNUNET_ntohll (ism->inode);
347 ism = (const struct IndexStartMessage*) message; 347 ism = (const struct IndexStartMessage*) message;
@@ -363,6 +363,7 @@ GNUNET_FS_handle_index_start (void *cls,
363 { 363 {
364 /* fast validation OK! */ 364 /* fast validation OK! */
365 signal_index_ok (ii); 365 signal_index_ok (ii);
366 GNUNET_free (fn);
366 return; 367 return;
367 } 368 }
368#if DEBUG_FS 369#if DEBUG_FS
@@ -380,6 +381,7 @@ GNUNET_FS_handle_index_start (void *cls,
380 HASHING_BLOCKSIZE, 381 HASHING_BLOCKSIZE,
381 &hash_for_index_val, 382 &hash_for_index_val,
382 ii); 383 ii);
384 GNUNET_free (fn);
383} 385}
384 386
385 387