diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-08-30 20:58:59 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-08-30 20:58:59 +0000 |
commit | 1ebec416b2d3f34d623f9fe8ce984179722dfee1 (patch) | |
tree | 5ef889f0b785516d65ee3d9c8b0d39cad0f7c6d2 /src/set/gnunet-service-set_intersection.c | |
parent | 2e25d8c868521f318381a8b87c9f8c1c7c402b7c (diff) | |
download | gnunet-1ebec416b2d3f34d623f9fe8ce984179722dfee1.tar.gz gnunet-1ebec416b2d3f34d623f9fe8ce984179722dfee1.zip |
fix inverted condition in set intersection
Diffstat (limited to 'src/set/gnunet-service-set_intersection.c')
-rw-r--r-- | src/set/gnunet-service-set_intersection.c | 4 |
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, |