summaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-service-revocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/gnunet-service-revocation.c')
-rw-r--r--src/revocation/gnunet-service-revocation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c
index 863289aae..7032921c6 100644
--- a/src/revocation/gnunet-service-revocation.c
+++ b/src/revocation/gnunet-service-revocation.c
@@ -384,7 +384,8 @@ check_revoke_message (void *cls,
uint16_t size;
size = ntohs (rm->header.size);
- if (size <= sizeof(struct RevokeMessage))
+ if (size <= sizeof(struct RevokeMessage) ||
+ (size > UINT16_MAX))
{
GNUNET_break (0);
return GNUNET_SYSERR;