diff options
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index 999104979..ac4cca882 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -822,8 +822,9 @@ GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh, | |||
822 | size_t msize; | 822 | size_t msize; |
823 | uint32_t session_id; | 823 | uint32_t session_id; |
824 | 824 | ||
825 | GNUNET_break (address->transport_name != NULL); | 825 | GNUNET_assert (address->transport_name != NULL); |
826 | namelen = (address->transport_name == NULL) ? 0 : strlen (address->transport_name) + 1; | 826 | namelen = strlen (address->transport_name) + 1; |
827 | GNUNET_assert (namelen > 1); | ||
827 | msize = sizeof (struct AddressDestroyedMessage) + address->address_length + namelen; | 828 | msize = sizeof (struct AddressDestroyedMessage) + address->address_length + namelen; |
828 | if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 829 | if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || |
829 | (address->address_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 830 | (address->address_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || |