aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/peerinfo_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-20 13:17:04 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-20 13:17:04 +0000
commit086092274020d3f6c78a71dbbdd9076cf7657f79 (patch)
treeb0e4fe63a4bb2d73146695283e7bf420fa0a2abd /src/peerinfo/peerinfo_api.c
parentd21f5a91f94fc659923950526c682759791414eb (diff)
downloadgnunet-086092274020d3f6c78a71dbbdd9076cf7657f79.tar.gz
gnunet-086092274020d3f6c78a71dbbdd9076cf7657f79.zip
check reserved
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r--src/peerinfo/peerinfo_api.c1
1 files changed, 1 insertions, 0 deletions
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)
434 return; 434 return;
435 } 435 }
436 im = (const struct InfoMessage *) msg; 436 im = (const struct InfoMessage *) msg;
437 GNUNET_break (0 == ntohl (im->reserved));
437 hello = NULL; 438 hello = NULL;
438 if (ms > sizeof (struct InfoMessage) + sizeof (struct GNUNET_MessageHeader)) 439 if (ms > sizeof (struct InfoMessage) + sizeof (struct GNUNET_MessageHeader))
439 { 440 {