-fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 6 Mar 2012 10:07:53 +0000 (10:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 6 Mar 2012 10:07:53 +0000 (10:07 +0000)
src/namestore/plugin_namestore_sqlite.c

index 5dc52bcfc4362f7e96a6eca23bc60d1e6234b8c2..429426701fa950b6c270d1a6f2b12b92fb076e0e 100644 (file)
@@ -480,11 +480,11 @@ namestore_sqlite_put_records (void *cls,
   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_GNS_TYPE_PKEY)
+    if (rd[i].record_type == GNUNET_GNS_TYPE_PKEY)
     {
-      GNUNET_assert (sizeof (GNUNET_HashCode) == rd->data_size);
+      GNUNET_assert (sizeof (GNUNET_HashCode) == rd[i].data_size);
       memcpy (&zone_delegation,
-             rd->data,
+             rd[i].data,
              sizeof (GNUNET_HashCode));
       break;
     }