summaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_typemap.c
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/gnunet-service-core_typemap.c
parent08d7c225934a1f47356c0df313ae5d0a3eccb705 (diff)
downloadgnunet-d615eab51d7976fa818498b2592dd1567da69fd8.tar.gz
gnunet-d615eab51d7976fa818498b2592dd1567da69fd8.zip
fix
Diffstat (limited to 'src/core/gnunet-service-core_typemap.c')
-rw-r--r--src/core/gnunet-service-core_typemap.c2
1 files changed, 2 insertions, 0 deletions
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;