aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-11 09:58:14 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-11 09:58:14 +0000
commitd615eab51d7976fa818498b2592dd1567da69fd8 (patch)
treed8c4a6b274d918c548cb73342b6f41722f85a7bb /src/core
parent08d7c225934a1f47356c0df313ae5d0a3eccb705 (diff)
downloadgnunet-d615eab51d7976fa818498b2592dd1567da69fd8.tar.gz
gnunet-d615eab51d7976fa818498b2592dd1567da69fd8.zip
fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core_clients.c2
-rw-r--r--src/core/gnunet-service-core_typemap.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 9b442bf30..2b1c5fe59 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -444,7 +444,7 @@ static void
444client_tokenizer_callback (void *cls, void *client, 444client_tokenizer_callback (void *cls, void *client,
445 const struct GNUNET_MessageHeader *message) 445 const struct GNUNET_MessageHeader *message)
446{ 446{
447 struct TokenizerContext *tc = cls; 447 struct TokenizerContext *tc = client;
448 struct GSC_ClientActiveRequest *car = tc->car; 448 struct GSC_ClientActiveRequest *car = tc->car;
449 449
450 if (0 == 450 if (0 ==
diff --git a/src/core/gnunet-service-core_typemap.c b/src/core/gnunet-service-core_typemap.c
index f55254b05..e60f99ed6 100644
--- a/src/core/gnunet-service-core_typemap.c
+++ b/src/core/gnunet-service-core_typemap.c
@@ -213,6 +213,8 @@ GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap,
213{ 213{
214 unsigned int i; 214 unsigned int i;
215 215
216 if (NULL == tmap)
217 return GNUNET_NO;
216 for (i=0;i<tcnt;i++) 218 for (i=0;i<tcnt;i++)
217 if (0 != (tmap->bits[types[i] / 32] & (1 << (types[i] % 32)))) 219 if (0 != (tmap->bits[types[i] / 32] & (1 << (types[i] % 32))))
218 return GNUNET_YES; 220 return GNUNET_YES;