aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ats/gnunet-service-ats_scheduling.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c
index f5e286a64..2d5a354e8 100644
--- a/src/ats/gnunet-service-ats_scheduling.c
+++ b/src/ats/gnunet-service-ats_scheduling.c
@@ -299,7 +299,8 @@ GAS_handle_address_in_use (void *cls, struct GNUNET_SERVER_Client *client,
299 299
300 if ((address_length + plugin_name_length + 300 if ((address_length + plugin_name_length +
301 sizeof (struct AddressUseMessage) != ntohs (message->size)) || 301 sizeof (struct AddressUseMessage) != ntohs (message->size)) ||
302 (plugin_name[plugin_name_length - 1] != '\0')) 302 ((plugin_name_length > 0) &&
303 (plugin_name[plugin_name_length - 1] != '\0')))
303 { 304 {
304 GNUNET_break (0); 305 GNUNET_break (0);
305 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 306 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);