gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -style fix


From: gnunet
Subject: [gnunet] branch master updated: -style fix
Date: Thu, 18 Feb 2021 16:46:00 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 75ae0e1ae -style fix
75ae0e1ae is described below

commit 75ae0e1aef8d4a0f868c8453741ebe39757b4289
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Feb 18 16:44:43 2021 +0100

    -style fix
---
 src/setu/gnunet-service-setu.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index 9ec482559..f06e9cf9b 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -143,7 +143,7 @@ enum UnionOperationPhase
    * Phase that receives full set first and then sends elements that are
    * the local peer missing
    */
-   PHASE_FULL_RECEIVING
+  PHASE_FULL_RECEIVING
 };
 
 
@@ -2057,13 +2057,14 @@ check_union_p2p_full_element (void *cls,
 {
   struct Operation *op = cls;
 
-  // Allow only receiving of full element message if in expect IBF or in 
PHASE_FULL_RECEIVING state
-  if ( op->phase != PHASE_EXPECT_IBF && op->phase != PHASE_FULL_RECEIVING ) {
-      GNUNET_break_op (0);
-      return GNUNET_SYSERR;
-  }
-
   (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;
 }

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