gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r15999 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r15999 - gnunet/src/testing
Date: Fri, 15 Jul 2011 13:23:10 +0200

Author: grothoff
Date: 2011-07-15 13:23:10 +0200 (Fri, 15 Jul 2011)
New Revision: 15999

Modified:
   gnunet/src/testing/testing_group.c
Log:
leak

Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c  2011-07-15 11:21:14 UTC (rev 15998)
+++ gnunet/src/testing/testing_group.c  2011-07-15 11:23:10 UTC (rev 15999)
@@ -5946,7 +5946,7 @@
                       "Found file size %llu for hostkeys, expect hostkeys to 
be size %d\n",
                       fs, HOSTKEYFILESIZE);
 
-          if (fs % HOSTKEYFILESIZE != 0)
+          if (0 != (fs % HOSTKEYFILESIZE))
             {
               GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                           "File size %llu seems incorrect for hostkeys...\n",
@@ -5960,8 +5960,8 @@
                          total_hostkeys);
               pg->hostkey_data = GNUNET_malloc_large (fs);
               GNUNET_assert (fs == GNUNET_DISK_file_read (fd, 
pg->hostkey_data, fs));
-              GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd));
             }
+         GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd));
         }
       GNUNET_free(hostkeys_file);
     }




reply via email to

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