[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23894 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23894 - gnunet/src/mesh |
Date: |
Tue, 18 Sep 2012 18:29:43 +0200 |
Author: bartpolot
Date: 2012-09-18 18:29:43 +0200 (Tue, 18 Sep 2012)
New Revision: 23894
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
- fix ghost regex bug
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-09-18 15:46:24 UTC (rev
23893)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-09-18 16:29:43 UTC (rev
23894)
@@ -1339,10 +1339,15 @@
/* Find the longest match for the current string position,
* among tokens in the given block */
+ ctx->longest_match = 0;
result = GNUNET_MESH_regex_block_iterate (block, size,
®ex_edge_iterator, ctx);
GNUNET_break (GNUNET_OK == result || SIZE_MAX == size);
+ /* Did anything match? */
+ if (0 == ctx->longest_match)
+ return;
+
new_ctx = GNUNET_malloc (sizeof (struct MeshRegexSearchContext));
new_ctx->info = info;
new_ctx->position = ctx->position + ctx->longest_match;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23894 - gnunet/src/mesh,
gnunet <=