projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
-fix
[oweals/gnunet.git]
/
src
/
fs
/
fs_publish.c
diff --git
a/src/fs/fs_publish.c
b/src/fs/fs_publish.c
index b3f6415c8e3c5fdf392183fe4ee92a37b0d8c008..e0a6f046a3837d3f04e17f11f25a2eebec6ebfff 100644
(file)
--- a/
src/fs/fs_publish.c
+++ b/
src/fs/fs_publish.c
@@
-355,6
+355,8
@@
block_reader (void *cls, uint64_t offset, size_t max, void *buf, char **emsg)
}
else
{
+ if (UINT64_MAX == offset)
+ return p->data.file.reader (p->data.file.reader_cls, offset, 0, NULL, NULL);
pt_size = GNUNET_MIN (max, p->data.file.file_size - offset);
if (pt_size == 0)
return 0; /* calling reader with pt_size==0