gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5183 - GNUnet/src/applications/sqstore_sqlite


From: gnunet
Subject: [GNUnet-SVN] r5183 - GNUnet/src/applications/sqstore_sqlite
Date: Fri, 29 Jun 2007 20:57:52 -0600 (MDT)

Author: grothoff
Date: 2007-06-29 20:57:52 -0600 (Fri, 29 Jun 2007)
New Revision: 5183

Modified:
   GNUnet/src/applications/sqstore_sqlite/sqlite.c
Log:
extra assertion

Modified: GNUnet/src/applications/sqstore_sqlite/sqlite.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlite.c     2007-06-29 21:28:22 UTC 
(rev 5182)
+++ GNUnet/src/applications/sqstore_sqlite/sqlite.c     2007-06-30 02:57:52 UTC 
(rev 5183)
@@ -1000,6 +1000,14 @@
        
        if (datum == NULL)
          continue;
+       if ( (key != NULL) &&
+            (0 != memcmp(&datum->key,
+                         key,
+                         sizeof(HashCode512))) ) {
+         GE_BREAK(NULL, 0);
+         FREE(datum);
+         continue;
+       }
 
 #if DEBUG_SQLITE
        GE_LOG(ectx,





reply via email to

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