gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 145/164: Return early from function


From: gnunet
Subject: [gnunet] 145/164: Return early from function
Date: Fri, 30 Jul 2021 15:33:31 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

commit 6e23aab5560e967dad66f2cf3b3fd62bad5dbc7d
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Thu Jun 10 00:50:06 2021 +0200

    Return early from function
---
 src/setu/gnunet-service-setu.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index 711b642a5..c527ed7da 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -1629,13 +1629,16 @@ fail_union_operation (struct Operation *op)
 static void
 full_sync_plausibility_check (struct Operation *op)
 {
+  if(GNUNET_YES != op->byzantine)
+      return;
+
   long double security_level_lb = (long double) 1 / (SECURITY_LEVEL);
   uint64_t duplicates = op->received_fresh - op->received_total;
 
   /*
    * Protect full sync from receiving double element when in FULL SENDING
    */
-  if ((GNUNET_YES == op->byzantine) && (PHASE_FULL_SENDING == op->phase) )
+  if (PHASE_FULL_SENDING == op->phase)
   {
     if (duplicates > 0)
     {
@@ -1653,7 +1656,7 @@ full_sync_plausibility_check (struct Operation *op)
   /*
    * Protect full sync with probabilistic algorithm
    */
-  if ((GNUNET_YES == op->byzantine) && (PHASE_FULL_RECEIVING == op->phase) )
+  if (PHASE_FULL_RECEIVING == op->phase)
   {
     if (0 == op->remote_set_diff)
       op->remote_set_diff = 1;

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