aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-11 22:45:57 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-11 22:45:57 +0000
commite695e63169a4d0da7ab2fe77c59ac2ca29e443d1 (patch)
treec6dab890be90cc16258a76b77ec71533af49bcee /src/fs/fs_tree.c
parente0bf5085a192fe5e9ba401ea7bc62f304c370c4d (diff)
downloadgnunet-e695e63169a4d0da7ab2fe77c59ac2ca29e443d1.tar.gz
gnunet-e695e63169a4d0da7ab2fe77c59ac2ca29e443d1.zip
-do not clean up reader more than once
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index 3a697c539..b27fea57f 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -429,7 +429,11 @@ void
429GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, 429GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te,
430 struct GNUNET_FS_Uri **uri, char **emsg) 430 struct GNUNET_FS_Uri **uri, char **emsg)
431{ 431{
432 (void) te->reader (te->cls, UINT64_MAX, 0, 0, NULL); 432 if (NULL != te->reader)
433 {
434 (void) te->reader (te->cls, UINT64_MAX, 0, 0, NULL);
435 te->reader = NULL;
436 }
433 GNUNET_assert (GNUNET_NO == te->in_next); 437 GNUNET_assert (GNUNET_NO == te->in_next);
434 if (uri != NULL) 438 if (uri != NULL)
435 *uri = te->uri; 439 *uri = te->uri;