struct GNUNET_HashCode * key)
{
const struct PBlock *pb;
+ GNUNET_MESH_ApplicationType app_type;
pb = block;
switch (type)
*key = pb->id.hashPubKey;
return GNUNET_OK;
case GNUNET_BLOCK_TYPE_MESH_PEER_BY_TYPE:
- GNUNET_CRYPTO_hash (&pb->type, sizeof(GNUNET_MESH_ApplicationType), key);
+ app_type = ntohl (pb->type);
+ GNUNET_CRYPTO_hash (&app_type, sizeof(GNUNET_MESH_ApplicationType), key);
return GNUNET_OK;
default:
GNUNET_break (0);