From: Christian Grothoff Date: Sun, 12 Mar 2017 16:16:53 +0000 (+0100) Subject: always initialize HT upon state creation X-Git-Tag: gnunet-0.11.0rc0~286^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a2ac01f46c4d57034b5d40201b29701ff95b456a;p=oweals%2Fgnunet.git always initialize HT upon state creation --- diff --git a/src/set/gnunet-service-set_intersection.c b/src/set/gnunet-service-set_intersection.c index b298f7b41..bb369a81f 100644 --- a/src/set/gnunet-service-set_intersection.c +++ b/src/set/gnunet-service-set_intersection.c @@ -849,10 +849,6 @@ static void begin_bf_exchange (struct Operation *op) { op->state->phase = PHASE_BF_EXCHANGE; - GNUNET_assert (NULL == op->state->my_elements); - op->state->my_elements - = GNUNET_CONTAINER_multihashmap_create (op->state->my_element_count, - GNUNET_YES); GNUNET_CONTAINER_multihashmap_iterate (op->spec->set->content->elements, &initialize_map_unfiltered, op); @@ -1034,6 +1030,9 @@ intersection_evaluate (struct Operation *op, /* we started the operation, thus we have to send the operation request */ op->state->phase = PHASE_INITIAL; op->state->my_element_count = op->spec->set->state->current_set_element_count; + op->state->my_elements + = GNUNET_CONTAINER_multihashmap_create (op->state->my_element_count, + GNUNET_YES); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Initiating intersection operation evaluation\n");