fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 3 Nov 2010 10:24:04 +0000 (10:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 3 Nov 2010 10:24:04 +0000 (10:24 +0000)
src/fs/fs_download.c

index 2be58aa1a80d1fabcde618f5d7e037127a50c175..b62620c3d1a1a25238b6803b25f2df59eddd79a2 100644 (file)
@@ -1854,7 +1854,8 @@ GNUNET_FS_download_start_from_search (struct GNUNET_FS_Handle *h,
       GNUNET_break (0);
       return NULL;
     }
-  GNUNET_assert (GNUNET_FS_uri_test_chk (sr->uri));
+  GNUNET_assert (GNUNET_FS_uri_test_chk (sr->uri) ||
+                GNUNET_FS_uri_test_loc (sr->uri) );             
   if ( (offset + length < offset) ||
        (offset + length > sr->uri->data.chk.file_length) )
     {