aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-helper-fs-publish.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r--src/fs/gnunet-helper-fs-publish.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c
index add45ede6..7ea94998d 100644
--- a/src/fs/gnunet-helper-fs-publish.c
+++ b/src/fs/gnunet-helper-fs-publish.c
@@ -377,6 +377,11 @@ extract_files (struct ScanTreeNode *item)
377 return GNUNET_SYSERR; 377 return GNUNET_SYSERR;
378 return GNUNET_OK; 378 return GNUNET_OK;
379 } 379 }
380 else if (size > (UINT16_MAX - sizeof (struct GNUNET_MessageHeader) - slen))
381 {
382 /* We can't transfer more than 64k bytes in one message. */
383 size = UINT16_MAX - sizeof (struct GNUNET_MessageHeader) - slen;
384 }
380 { 385 {
381 char buf[size + slen]; 386 char buf[size + slen];
382 char *dst = &buf[slen]; 387 char *dst = &buf[slen];