projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad84b66
)
- clangs
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 25 Jan 2012 14:23:46 +0000
(14:23 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 25 Jan 2012 14:23:46 +0000
(14:23 +0000)
src/ats/gnunet-service-ats_scheduling.c
patch
|
blob
|
history
diff --git
a/src/ats/gnunet-service-ats_scheduling.c
b/src/ats/gnunet-service-ats_scheduling.c
index 2d5a354e8217edcf8f992ef503322bef0f3791d7..72b72cd3e11d9059fbf06076f0aada6bbe74ee7f 100644
(file)
--- a/
src/ats/gnunet-service-ats_scheduling.c
+++ b/
src/ats/gnunet-service-ats_scheduling.c
@@
-240,12
+240,13
@@
GAS_handle_address_update (void *cls, struct GNUNET_SERVER_Client *client,
plugin_name = &address[address_length];
else
plugin_name = "";
plugin_name = &address[address_length];
else
plugin_name = "";
+
if ((address_length + plugin_name_length +
ats_count * sizeof (struct GNUNET_ATS_Information) +
sizeof (struct AddressUpdateMessage) != ntohs (message->size)) ||
(ats_count >
if ((address_length + plugin_name_length +
ats_count * sizeof (struct GNUNET_ATS_Information) +
sizeof (struct AddressUpdateMessage) != ntohs (message->size)) ||
(ats_count >
- GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_ATS_Information))
-
|| (plugin_name[plugin_name_length - 1] != '\0'
))
+ GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_ATS_Information))
||
+
((plugin_name_length > 0) && (plugin_name[plugin_name_length - 1] != '\0')
))
{
GNUNET_break (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
{
GNUNET_break (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);