gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: SetU move check to union


From: gnunet
Subject: [gnunet] branch master updated: SetU move check to union
Date: Thu, 18 Feb 2021 16:53:02 +0100

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

elias-summermatter pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 8095b1a1b SetU move check to union
8095b1a1b is described below

commit 8095b1a1bc73d084d2e0e34a529ea52e17fd7355
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Thu Feb 18 16:51:47 2021 +0100

    SetU move check to union
---
 src/setu/gnunet-service-setu.c | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index f06e9cf9b..540628afa 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -2058,13 +2058,7 @@ check_union_p2p_full_element (void *cls,
   struct Operation *op = cls;
 
   (void) op;
-  /* Allow only receiving of full element message if in expect IBF or in 
PHASE_FULL_RECEIVING state */
-  if ( (PHASE_EXPECT_IBF != op->phase) &&
-       (PHASE_FULL_RECEIVING != op->phase) )
-  {
-    GNUNET_break_op (0);
-    return GNUNET_SYSERR;
-  }
+
   // FIXME: check that we expect full elements here?
   return GNUNET_OK;
 }
@@ -2085,6 +2079,16 @@ handle_union_p2p_full_element (void *cls,
   struct KeyEntry *ke;
   uint16_t element_size;
 
+
+    /* Allow only receiving of full element message if in expect IBF or in 
PHASE_FULL_RECEIVING state */
+    if ( (PHASE_EXPECT_IBF != op->phase) &&
+         (PHASE_FULL_RECEIVING != op->phase) )
+    {
+        GNUNET_break_op (0);
+        fail_union_operation (op);
+        return;
+    }
+
   op->phase = PHASE_FULL_RECEIVING;
 
   element_size = ntohs (emsg->header.size)

-- 
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]