gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19390 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r19390 - gnunet/src/ats
Date: Wed, 25 Jan 2012 15:23:46 +0100

Author: wachs
Date: 2012-01-25 15:23:46 +0100 (Wed, 25 Jan 2012)
New Revision: 19390

Modified:
   gnunet/src/ats/gnunet-service-ats_scheduling.c
Log:
- clangs

Modified: gnunet/src/ats/gnunet-service-ats_scheduling.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_scheduling.c      2012-01-25 14:22:00 UTC 
(rev 19389)
+++ gnunet/src/ats/gnunet-service-ats_scheduling.c      2012-01-25 14:23:46 UTC 
(rev 19390)
@@ -240,12 +240,13 @@
     plugin_name = &address[address_length];
   else
     plugin_name = "";
+
   if ((address_length + plugin_name_length +
        ats_count * sizeof (struct GNUNET_ATS_Information) +
        sizeof (struct AddressUpdateMessage) != ntohs (message->size)) ||
       (ats_count >
-       GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_ATS_Information))
-      || (plugin_name[plugin_name_length - 1] != '\0'))
+       GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct 
GNUNET_ATS_Information)) ||
+       ((plugin_name_length > 0) && (plugin_name[plugin_name_length - 1] != 
'\0')))
   {
     GNUNET_break (0);
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]