gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r20297 - gnunet/src/namestore


From: gnunet
Subject: [GNUnet-SVN] r20297 - gnunet/src/namestore
Date: Tue, 6 Mar 2012 00:28:29 +0100

Author: schanzen
Date: 2012-03-06 00:28:29 +0100 (Tue, 06 Mar 2012)
New Revision: 20297

Modified:
   gnunet/src/namestore/plugin_namestore_sqlite.c
Log:
-PKEY is key no hash


Modified: gnunet/src/namestore/plugin_namestore_sqlite.c
===================================================================
--- gnunet/src/namestore/plugin_namestore_sqlite.c      2012-03-05 21:49:42 UTC 
(rev 20296)
+++ gnunet/src/namestore/plugin_namestore_sqlite.c      2012-03-05 23:28:29 UTC 
(rev 20297)
@@ -480,12 +480,12 @@
   GNUNET_CRYPTO_hash (name, name_len, &nh);
   memset (&zone_delegation, 0, sizeof (zone_delegation));
   for (i=0;i<rd_count;i++)
-    if (rd->record_type == GNUNET_NAMESTORE_TYPE_PKEY)
+    if (rd[i].record_type == GNUNET_NAMESTORE_TYPE_PKEY)
     {
-      GNUNET_assert (sizeof (GNUNET_HashCode) == rd->data_size);
+      GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) 
== rd[i].data_size);
       memcpy (&zone_delegation,
-             rd->data,
-             sizeof (GNUNET_HashCode));
+             rd[i].data,
+             sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));
       break;
     }
   rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX);




reply via email to

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