gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 10/18: TNG: Fixed bug when checking, if fragment sub tree is do


From: gnunet
Subject: [gnunet] 10/18: TNG: Fixed bug when checking, if fragment sub tree is done.
Date: Tue, 02 May 2023 12:53:25 +0200

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

commit 2be7b4a59f9164dedf01664abb30e92820900b69
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Thu Apr 27 17:49:57 2023 +0200

    TNG: Fixed bug when checking, if fragment sub tree is done.
---
 src/transport/gnunet-service-tng.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/transport/gnunet-service-tng.c 
b/src/transport/gnunet-service-tng.c
index 29f8998ed..a75292a49 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -6415,7 +6415,10 @@ completed_pending_message (struct PendingMessage *pm)
     GNUNET_CONTAINER_MDLL_remove (frag, pos->head_frag, pos->tail_frag, pm);
     free_pending_message (pm);
     /* check if subtree is done */
-    while ((NULL == pos->head_frag) && (pos->frag_off == pos->bytes_msg) &&
+    while ((NULL == pos->head_frag) && (pos->frag_off == (pos->bytes_msg
+                                                          - sizeof(struct
+                                                                   
TransportFragmentBoxMessage)))
+           &&
            (NULL != pos->frag_parent))
     {
       pm = pos;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]