aboutsummaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set_intersection.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/set/gnunet-service-set_intersection.c b/src/set/gnunet-service-set_intersection.c
index d681666fe..e1bbcc152 100644
--- a/src/set/gnunet-service-set_intersection.c
+++ b/src/set/gnunet-service-set_intersection.c
@@ -843,9 +843,8 @@ process_bf (struct Operation *op)
843 843
844 if ( (0 == op->state->my_element_count) || /* fully disjoint */ 844 if ( (0 == op->state->my_element_count) || /* fully disjoint */
845 ( (op->state->my_element_count == op->remote_element_count) && 845 ( (op->state->my_element_count == op->remote_element_count) &&
846 (0 == memcmp (&op->state->my_xor, 846 (0 == GNUNET_memcmp (&op->state->my_xor,
847 &op->state->other_xor, 847 &op->state->other_xor)) ) )
848 sizeof (struct GNUNET_HashCode))) ) )
849 { 848 {
850 /* we are done */ 849 /* we are done */
851 op->state->phase = PHASE_MUST_SEND_DONE; 850 op->state->phase = PHASE_MUST_SEND_DONE;
@@ -1059,9 +1058,8 @@ handle_intersection_p2p_done (void *cls,
1059 op); 1058 op);
1060 } 1059 }
1061 if ( (op->state->my_element_count != ntohl (idm->final_element_count)) || 1060 if ( (op->state->my_element_count != ntohl (idm->final_element_count)) ||
1062 (0 != memcmp (&op->state->my_xor, 1061 (0 != GNUNET_memcmp (&op->state->my_xor,
1063 &idm->element_xor_hash, 1062 &idm->element_xor_hash)) )
1064 sizeof (struct GNUNET_HashCode))) )
1065 { 1063 {
1066 /* Other peer thinks we are done, but we disagree on the result! */ 1064 /* Other peer thinks we are done, but we disagree on the result! */
1067 GNUNET_break_op (0); 1065 GNUNET_break_op (0);