initialize reserved field, check it
authorChristian Grothoff <christian@grothoff.org>
Wed, 20 Oct 2010 11:49:09 +0000 (11:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 20 Oct 2010 11:49:09 +0000 (11:49 +0000)
src/core/core_api.c
src/core/gnunet-service-core.c

index 6d492537dd65794049c6d9d87d17c07cb0e6aeab..453ca1f2127fd2be7755825f2f07cce440597e05 100644 (file)
@@ -607,6 +607,7 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
       return;
     }
   m = (const struct InitReplyMessage *) msg;
+  GNUNET_break (0 == ntohl (m->reserved));
   /* start our message processing loop */
 #if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
index 52f229b01a33dc480529c66497b0562eec753d6d..c0213f3377cc102d4a416da2c40c61f729e738df 100644 (file)
@@ -1045,6 +1045,7 @@ handle_client_init (void *cls,
   /* send init reply message */
   irm.header.size = htons (sizeof (struct InitReplyMessage));
   irm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY);
+  irm.reserved = htonl (0);
   memcpy (&irm.publicKey,
           &my_public_key,
           sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));