diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-29 23:20:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-29 23:20:26 +0000 |
commit | c9fca90e1efe64166a2bf259df3242f50af9a6ac (patch) | |
tree | 0d972efe3c5124250586566ad6c63c42ac705426 /src/set/gnunet-service-set_intersection.c | |
parent | 2550aed123e3e3d8fb02a30c8422f9b939a3e725 (diff) | |
download | gnunet-c9fca90e1efe64166a2bf259df3242f50af9a6ac.tar.gz gnunet-c9fca90e1efe64166a2bf259df3242f50af9a6ac.zip |
-fix iteration set
Diffstat (limited to 'src/set/gnunet-service-set_intersection.c')
-rw-r--r-- | src/set/gnunet-service-set_intersection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/set/gnunet-service-set_intersection.c b/src/set/gnunet-service-set_intersection.c index fb3cd23b5..2af68dbef 100644 --- a/src/set/gnunet-service-set_intersection.c +++ b/src/set/gnunet-service-set_intersection.c | |||
@@ -903,7 +903,7 @@ handle_p2p_done (void *cls, | |||
903 | { | 903 | { |
904 | /* other peer determined empty set is the intersection, | 904 | /* other peer determined empty set is the intersection, |
905 | remove all elements */ | 905 | remove all elements */ |
906 | GNUNET_CONTAINER_multihashmap_iterate (op->spec->set->elements, | 906 | GNUNET_CONTAINER_multihashmap_iterate (op->state->my_elements, |
907 | &filter_all, | 907 | &filter_all, |
908 | op); | 908 | op); |
909 | } | 909 | } |
@@ -995,6 +995,7 @@ intersection_accept (struct Operation *op) | |||
995 | /* If the other peer (Alice) has fewer elements than us (Bob), | 995 | /* If the other peer (Alice) has fewer elements than us (Bob), |
996 | we just send the count as Alice should send the first BF */ | 996 | we just send the count as Alice should send the first BF */ |
997 | send_element_count (op); | 997 | send_element_count (op); |
998 | op->state->phase = PHASE_BF_EXCHANGE; | ||
998 | return; | 999 | return; |
999 | } | 1000 | } |
1000 | /* We have fewer elements, so we start with the BF */ | 1001 | /* We have fewer elements, so we start with the BF */ |