projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[oweals/gnunet.git]
/
src
/
fs
/
gnunet-service-fs_cp.c
diff --git
a/src/fs/gnunet-service-fs_cp.c
b/src/fs/gnunet-service-fs_cp.c
index 80b9c4f1151af75ef10eb742789606953401b1a5..eec4adeea805f6b23946702b8ef24c5e78c2cde4 100644
(file)
--- a/
src/fs/gnunet-service-fs_cp.c
+++ b/
src/fs/gnunet-service-fs_cp.c
@@
-630,6
+630,7
@@
handle_p2p_reply (void *cls,
struct PutMessage *pm;
size_t msize;
struct PutMessage *pm;
size_t msize;
+ GNUNET_assert (data_len < GNUNET_SERVER_MAX_MESSAGE_SIZE);
prd = GSF_pending_request_get_data_ (pr);
if (NULL == data)
{
prd = GSF_pending_request_get_data_ (pr);
if (NULL == data)
{
@@
-665,7
+666,7
@@
handle_p2p_reply (void *cls,
GNUNET_break (0);
return;
}
GNUNET_break (0);
return;
}
- pm = GNUNET_malloc (
sizeof (msize)
);
+ pm = GNUNET_malloc (
msize
);
pm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_PUT);
pm->header.size = htons (msize);
pm->type = htonl (type);
pm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_PUT);
pm->header.size = htons (msize);
pm->type = htonl (type);