diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-14 22:40:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-14 22:40:18 +0000 |
commit | 12d99c03dca80ffb4f05d54f5ad9933db51d221d (patch) | |
tree | cd2255a1dc2c20fb829dba09adde8f2880b438ca /src | |
parent | a8139248067642fed139a88e25db896eb15f9263 (diff) | |
download | gnunet-12d99c03dca80ffb4f05d54f5ad9933db51d221d.tar.gz gnunet-12d99c03dca80ffb4f05d54f5ad9933db51d221d.zip |
plugin name should never be NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index fa1b6bc26..999104979 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -822,6 +822,7 @@ 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 | namelen = (address->transport_name == NULL) ? 0 : strlen (address->transport_name) + 1; | 826 | namelen = (address->transport_name == NULL) ? 0 : strlen (address->transport_name) + 1; |
826 | msize = sizeof (struct AddressDestroyedMessage) + address->address_length + namelen; | 827 | msize = sizeof (struct AddressDestroyedMessage) + address->address_length + namelen; |
827 | if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 828 | if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || |