aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-18 16:44:43 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-18 16:44:43 +0100
commit75ae0e1aef8d4a0f868c8453741ebe39757b4289 (patch)
treed4c784161337575cacf9918a3fc7a32e6012d594
parent6d5dfc645805f2fc7b24ea72f84c3c3c5a0124cb (diff)
downloadgnunet-75ae0e1aef8d4a0f868c8453741ebe39757b4289.tar.gz
gnunet-75ae0e1aef8d4a0f868c8453741ebe39757b4289.zip
-style fix
-rw-r--r--src/setu/gnunet-service-setu.c15
1 files 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
143 * Phase that receives full set first and then sends elements that are 143 * Phase that receives full set first and then sends elements that are
144 * the local peer missing 144 * the local peer missing
145 */ 145 */
146 PHASE_FULL_RECEIVING 146 PHASE_FULL_RECEIVING
147}; 147};
148 148
149 149
@@ -2057,13 +2057,14 @@ check_union_p2p_full_element (void *cls,
2057{ 2057{
2058 struct Operation *op = cls; 2058 struct Operation *op = cls;
2059 2059
2060 // Allow only receiving of full element message if in expect IBF or in PHASE_FULL_RECEIVING state
2061 if ( op->phase != PHASE_EXPECT_IBF && op->phase != PHASE_FULL_RECEIVING ) {
2062 GNUNET_break_op (0);
2063 return GNUNET_SYSERR;
2064 }
2065
2066 (void) op; 2060 (void) op;
2061 /* Allow only receiving of full element message if in expect IBF or in PHASE_FULL_RECEIVING state */
2062 if ( (PHASE_EXPECT_IBF != op->phase) &&
2063 (PHASE_FULL_RECEIVING != op->phase) )
2064 {
2065 GNUNET_break_op (0);
2066 return GNUNET_SYSERR;
2067 }
2067 // FIXME: check that we expect full elements here? 2068 // FIXME: check that we expect full elements here?
2068 return GNUNET_OK; 2069 return GNUNET_OK;
2069} 2070}