diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.c')
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c index dac84676f..4659a2363 100644 --- a/src/ats/gnunet-service-ats_scheduling.c +++ b/src/ats/gnunet-service-ats_scheduling.c | |||
@@ -359,8 +359,8 @@ GAS_handle_address_destroyed (void *cls, struct GNUNET_SERVER_Client *client, | |||
359 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 359 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
360 | return; | 360 | return; |
361 | } | 361 | } |
362 | if ((plugin_name_length != 0) && | 362 | if ( (plugin_name_length == 0) || |
363 | (plugin_name[plugin_name_length - 1] != '\0')) | 363 | (plugin_name[plugin_name_length - 1] != '\0')) |
364 | { | 364 | { |
365 | GNUNET_break (0); | 365 | GNUNET_break (0); |
366 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 366 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |