summaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-service-reclaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim.c')
-rw-r--r--src/reclaim/gnunet-service-reclaim.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c
index 913b667b7..04c12735b 100644
--- a/src/reclaim/gnunet-service-reclaim.c
+++ b/src/reclaim/gnunet-service-reclaim.c
@@ -731,9 +731,12 @@ static int
check_issue_ticket_message (void *cls, const struct IssueTicketMessage *im)
{
uint16_t size;
+ size_t attrs_len;
size = ntohs (im->header.size);
- if (size <= sizeof(struct IssueTicketMessage))
+ attrs_len = ntohs (im->attr_len);
+
+ if (attrs_len > size - sizeof(struct IssueTicketMessage))
{
GNUNET_break (0);
return GNUNET_SYSERR;