aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-06-25 11:55:03 +0000
committerBart Polot <bart@net.in.tum.de>2012-06-25 11:55:03 +0000
commite850c12a7b44330ec45ad849edfc60ac7abbad0e (patch)
treeca15d7dd68a6386eebbc717dc0013474eec83617
parentad1ef89025a60dc996a0db6544156990793085f8 (diff)
downloadgnunet-e850c12a7b44330ec45ad849edfc60ac7abbad0e.tar.gz
gnunet-e850c12a7b44330ec45ad849edfc60ac7abbad0e.zip
- wip mesh/regex
-rw-r--r--src/mesh/gnunet-service-mesh_new.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_new.c b/src/mesh/gnunet-service-mesh_new.c
index 86d0b4a09..d7446bc43 100644
--- a/src/mesh/gnunet-service-mesh_new.c
+++ b/src/mesh/gnunet-service-mesh_new.c
@@ -4024,7 +4024,9 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
4024 size_t size, const void *data) 4024 size_t size, const void *data)
4025{ 4025{
4026 const struct MeshRegexBlock *block = data; 4026 const struct MeshRegexBlock *block = data;
4027 struct MeshRegexSerachContext *ctx = cls;
4027 char *proof; 4028 char *proof;
4029 size_t len;
4028 4030
4029 // FIXME: does proof have to be NULL terminated? 4031 // FIXME: does proof have to be NULL terminated?
4030 proof = (char *) &block[1]; 4032 proof = (char *) &block[1];
@@ -4033,6 +4035,20 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
4033 GNUNET_break_op (0); 4035 GNUNET_break_op (0);
4034 return; 4036 return;
4035 } 4037 }
4038 len = strlen (ctx->description);
4039 if (len == ctx->position)
4040 {
4041 if (GNUNET_YES == ntohl (block->accepting))
4042 {
4043 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found peer by service\n");
4044 }
4045 else
4046 {
4047 GNUNET_break (0);
4048 // FIXME ERROR? Backtrace?
4049 }
4050 return;
4051 }
4036 // FIXME complete 4052 // FIXME complete
4037 return; 4053 return;
4038} 4054}