aboutsummaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-08-30 20:58:59 +0000
committerFlorian Dold <florian.dold@gmail.com>2015-08-30 20:58:59 +0000
commit1ebec416b2d3f34d623f9fe8ce984179722dfee1 (patch)
tree5ef889f0b785516d65ee3d9c8b0d39cad0f7c6d2 /src/set
parent2e25d8c868521f318381a8b87c9f8c1c7c402b7c (diff)
downloadgnunet-1ebec416b2d3f34d623f9fe8ce984179722dfee1.tar.gz
gnunet-1ebec416b2d3f34d623f9fe8ce984179722dfee1.zip
fix inverted condition in set intersection
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set_intersection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/set/gnunet-service-set_intersection.c b/src/set/gnunet-service-set_intersection.c
index a6723e019..af0ce1988 100644
--- a/src/set/gnunet-service-set_intersection.c
+++ b/src/set/gnunet-service-set_intersection.c
@@ -239,7 +239,7 @@ filtered_map_initialization (void *cls,
239 GNUNET_h2s (&ee->element_hash), 239 GNUNET_h2s (&ee->element_hash),
240 ee->element.size); 240 ee->element.size);
241 241
242 if (_GSS_is_element_of_operation (ee, op)) 242 if (GNUNET_NO == _GSS_is_element_of_operation (ee, op))
243 { 243 {
244 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 244 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
245 "Reduced initialization, not starting with %s:%u (wrong generation)\n", 245 "Reduced initialization, not starting with %s:%u (wrong generation)\n",
@@ -785,7 +785,7 @@ initialize_map_unfiltered (void *cls,
785 struct ElementEntry *ee = value; 785 struct ElementEntry *ee = value;
786 struct Operation *op = cls; 786 struct Operation *op = cls;
787 787
788 if (_GSS_is_element_of_operation (ee, op)) 788 if (GNUNET_NO == _GSS_is_element_of_operation (ee, op))
789 return GNUNET_YES; /* element not live in operation's generation */ 789 return GNUNET_YES; /* element not live in operation's generation */
790 GNUNET_CRYPTO_hash_xor (&op->state->my_xor, 790 GNUNET_CRYPTO_hash_xor (&op->state->my_xor,
791 &ee->element_hash, 791 &ee->element_hash,