diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-11 09:58:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-11 09:58:14 +0000 |
commit | d615eab51d7976fa818498b2592dd1567da69fd8 (patch) | |
tree | d8c4a6b274d918c548cb73342b6f41722f85a7bb /src/core/gnunet-service-core_typemap.c | |
parent | 08d7c225934a1f47356c0df313ae5d0a3eccb705 (diff) | |
download | gnunet-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.c | 2 |
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; |