From: Christian Grothoff Date: Wed, 20 Oct 2010 13:17:04 +0000 (+0000) Subject: check reserved X-Git-Tag: initial-import-from-subversion-38251~20025 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=086092274020d3f6c78a71dbbdd9076cf7657f79;p=oweals%2Fgnunet.git check reserved --- diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index 2a8454739..d18bc739a 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c @@ -519,6 +519,7 @@ handle_get (void *cls, struct GNUNET_SERVER_TransmitContext *tc; lpm = (const struct ListPeerMessage *) message; + GNUNET_break (0 == ntohl (lpm->reserved)); #if DEBUG_PEERINFO GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received for peer `%4s'\n", diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 865c6e520..5803b076a 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c @@ -434,6 +434,7 @@ peerinfo_handler (void *cls, const struct GNUNET_MessageHeader *msg) return; } im = (const struct InfoMessage *) msg; + GNUNET_break (0 == ntohl (im->reserved)); hello = NULL; if (ms > sizeof (struct InfoMessage) + sizeof (struct GNUNET_MessageHeader)) {