aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_dht.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-09-20 14:40:31 +0000
committerBart Polot <bart@net.in.tum.de>2013-09-20 14:40:31 +0000
commit2009c8d07d00b2e731d1afe11ccb457017382985 (patch)
treebac05b8ff1f723079e3f90c4a4fae11c45775ee6 /src/regex/regex_internal_dht.c
parent128d0a17bc0985be7e9d2c31449c2c0c3f8061da (diff)
downloadgnunet-2009c8d07d00b2e731d1afe11ccb457017382985.tar.gz
gnunet-2009c8d07d00b2e731d1afe11ccb457017382985.zip
- fix block validation for DHT PUT requests
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r--src/regex/regex_internal_dht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 554d4320b..56477220b 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -595,11 +595,12 @@ regex_next_edge (const struct RegexBlock *block,
595 const char *rest; 595 const char *rest;
596 int result; 596 int result;
597 597
598 LOG (GNUNET_ERROR_TYPE_DEBUG, "Next edge\n");
598 /* Find the longest match for the current string position, 599 /* Find the longest match for the current string position,
599 * among tokens in the given block */ 600 * among tokens in the given block */
600 ctx->longest_match = 0; 601 ctx->longest_match = 0;
601 result = REGEX_BLOCK_iterate (block, size, 602 result = REGEX_BLOCK_iterate (block, size,
602 &regex_edge_iterator, ctx); 603 &regex_edge_iterator, ctx);
603 GNUNET_break (GNUNET_OK == result); 604 GNUNET_break (GNUNET_OK == result);
604 605
605 /* Did anything match? */ 606 /* Did anything match? */