diff options
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index faeeb6081..81ae01b6a 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -657,9 +657,9 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | |||
657 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | 657 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); |
658 | namelen = strlen (address->transport_name) + 1; | 658 | namelen = strlen (address->transport_name) + 1; |
659 | msize = address->address_length + namelen; | 659 | msize = address->address_length + namelen; |
660 | if ((msize + sizeof (struct AddressUpdateMessage) >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 660 | if ((msize + sizeof (struct AddressUpdateMessage) >= GNUNET_MAX_MESSAGE_SIZE) || |
661 | (address->address_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 661 | (address->address_length >= GNUNET_MAX_MESSAGE_SIZE) || |
662 | (namelen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ) | 662 | (namelen >= GNUNET_MAX_MESSAGE_SIZE) ) |
663 | { | 663 | { |
664 | /* address too large for us, this should not happen */ | 664 | /* address too large for us, this should not happen */ |
665 | GNUNET_break (0); | 665 | GNUNET_break (0); |