aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2013-08-19 19:56:49 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2013-08-19 19:56:49 +0000
commit1492d04011bf60ec0c28a6d94977a105f6c3b15b (patch)
tree70d7bb792f33bc8c972e1022f7e28eed1a3b3324 /src/regex/regex_internal.c
parentb841c7123c01a61da81d48906119543ebc13a1b6 (diff)
downloadgnunet-1492d04011bf60ec0c28a6d94977a105f6c3b15b.tar.gz
gnunet-1492d04011bf60ec0c28a6d94977a105f6c3b15b.zip
Fix 'way too many REGEX PUTs' issue.
Diffstat (limited to 'src/regex/regex_internal.c')
-rw-r--r--src/regex/regex_internal.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c
index a1fab7694..eac420835 100644
--- a/src/regex/regex_internal.c
+++ b/src/regex/regex_internal.c
@@ -3437,17 +3437,19 @@ REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a,
3437 3437
3438 num_edges = state_get_edges (s, edges); 3438 num_edges = state_get_edges (s, edges);
3439 if ( ( (NULL != s->proof) && 3439 if ( ( (NULL != s->proof) &&
3440 (0 < strlen (s->proof)) ) || s->accepting) 3440 (GNUNET_REGEX_INITIAL_BYTES <= strlen (s->proof)) ) || s->accepting)
3441 iterator (iterator_cls, &s->hash, s->proof, 3441 iterator (iterator_cls, &s->hash, s->proof,
3442 s->accepting, 3442 s->accepting,
3443 num_edges, edges); 3443 num_edges, edges);
3444 s->marked = GNUNET_NO; 3444 s->marked = GNUNET_NO;
3445 } 3445 }
3446 3446
3447 iterate_initial_edge (GNUNET_REGEX_INITIAL_BYTES, 3447 iterate_initial_edge (1,
3448 GNUNET_REGEX_INITIAL_BYTES, 3448 GNUNET_REGEX_INITIAL_BYTES,
3449 NULL, a->start, 3449 NULL, a->start,
3450 iterator, iterator_cls); 3450 iterator, iterator_cls);
3451
3452
3451} 3453}
3452 3454
3453 3455