diff options
Diffstat (limited to 'src/setu')
-rw-r--r-- | src/setu/gnunet-service-setu.c | 15 |
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 | } |