- fixes
[oweals/gnunet.git] / src / namestore / plugin_namestore_sqlite.c
index 2d660cb7eecc811e16aa70a2b5c7e2dd24a144a1..98f89b3da6c8f3e85f1cc09480c51da85e9d3d51 100644 (file)
@@ -482,10 +482,10 @@ namestore_sqlite_put_records (void *cls,
   for (i=0;i<rd_count;i++)
     if (rd[i].record_type == GNUNET_NAMESTORE_TYPE_PKEY)
     {
-      GNUNET_assert (sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) == rd[i].data_size);
+      GNUNET_assert (sizeof (GNUNET_HashCode) == rd[i].data_size);
       memcpy (&zone_delegation,
              rd[i].data,
-             sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));
+             sizeof (GNUNET_HashCode));
       break;
     }
   rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX);