[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26121 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26121 - gnunet/src/mesh |
Date: |
Thu, 14 Feb 2013 18:22:01 +0100 |
Author: bartpolot
Date: 2013-02-14 18:22:01 +0100 (Thu, 14 Feb 2013)
New Revision: 26121
Modified:
gnunet/src/mesh/plugin_block_mesh.c
Log:
- fix
Modified: gnunet/src/mesh/plugin_block_mesh.c
===================================================================
--- gnunet/src/mesh/plugin_block_mesh.c 2013-02-14 17:20:48 UTC (rev 26120)
+++ gnunet/src/mesh/plugin_block_mesh.c 2013-02-14 17:22:01 UTC (rev 26121)
@@ -149,6 +149,7 @@
struct GNUNET_HashCode * key)
{
const struct PBlock *pb;
+ GNUNET_MESH_ApplicationType app_type;
pb = block;
switch (type)
@@ -159,7 +160,8 @@
*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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26121 - gnunet/src/mesh,
gnunet <=