From: Christian Grothoff Date: Fri, 2 Apr 2010 15:32:00 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22313 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=45b4202e8d6dfaea53ccb66f4f26a37dc7f44eb8;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 358b222aa..89d82251b 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -409,7 +409,8 @@ trigger_recursive_download (void *cls, us = GNUNET_FS_uri_to_string (uri); GNUNET_asprintf (&fn, "%s%s", - us, ext); + &us[strlen (GNUNET_FS_URI_PREFIX + GNUNET_FS_URI_CHK_INFIX)], ext); GNUNET_free (ext); GNUNET_free (us); } @@ -1114,7 +1115,6 @@ GNUNET_FS_download_start (struct GNUNET_FS_Handle *h, GNUNET_CONTAINER_meta_data_destroy (dc->meta); GNUNET_FS_uri_destroy (dc->uri); GNUNET_free (dc->filename); - GNUNET_CLIENT_disconnect (dc->client, GNUNET_NO); GNUNET_free (dc); return NULL; }