diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-11 22:45:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-11 22:45:57 +0000 |
commit | e695e63169a4d0da7ab2fe77c59ac2ca29e443d1 (patch) | |
tree | c6dab890be90cc16258a76b77ec71533af49bcee /src/fs/fs_tree.c | |
parent | e0bf5085a192fe5e9ba401ea7bc62f304c370c4d (diff) | |
download | gnunet-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.c | 6 |
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 | |||
429 | GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, | 429 | GNUNET_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; |