ugh
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2011 08:58:17 +0000 (08:58 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2011 08:58:17 +0000 (08:58 +0000)
src/core/gnunet-service-core_typemap.c

index db9b2a1362add3ca7827a7b978223de26f04d210..f55254b055c83346792eaf82fe0acfc7847d5468 100644 (file)
@@ -104,7 +104,7 @@ GSC_TYPEMAP_get_from_message (const struct GNUNET_MessageHeader *msg)
   uLongf dlen;
 
   size = ntohs (msg->size);
-  switch (msg->type)
+  switch (ntohs (msg->type))
   {
   case GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP:
     if (size != sizeof (struct GSC_TypeMap))