From: Bart Polot Date: Sat, 7 Jul 2012 15:11:58 +0000 (+0000) Subject: - fix recursion in case of * states X-Git-Tag: initial-import-from-subversion-38251~12596 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e43ea79aeddfa0cf8b55d1d4a6610ce80e042b8;p=oweals%2Fgnunet.git - fix recursion in case of * states --- diff --git a/src/mesh/gnunet-service-mesh_new.c b/src/mesh/gnunet-service-mesh_new.c index dd8edb463..a581147d1 100644 --- a/src/mesh/gnunet-service-mesh_new.c +++ b/src/mesh/gnunet-service-mesh_new.c @@ -4200,12 +4200,11 @@ regex_edge_iterator (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* Token doesn't match, END\n"); return GNUNET_YES; // Token doesn't match } - + ctx->position += len; if (GNUNET_YES == GNUNET_CONTAINER_multihashmap_contains(ctx->dht_get_handles, key)) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* GET running, END\n"); - if (0) GNUNET_CONTAINER_multihashmap_get_multiple (ctx->dht_get_results, key, ®ex_result_iterator, ctx); return GNUNET_YES; // We are already looking for it @@ -4220,7 +4219,6 @@ regex_edge_iterator (void *cls, NULL, /* xquery */ // FIXME BLOOMFILTER 0, /* xquery bits */ // FIXME BLOOMFILTER SIZE &dht_get_string_handler, ctx); - ctx->position += len; if (GNUNET_OK != GNUNET_CONTAINER_multihashmap_put(ctx->dht_get_handles, key, get_h, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))