aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-06 10:07:53 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-06 10:07:53 +0000
commitbaa30837717d5bb20e3d030f76f253ab34c6ea02 (patch)
tree34eac6f90504f521b4069e6b839fc98cc4ebaed3 /src/namestore/plugin_namestore_sqlite.c
parent2bcbb0d6b305eaf3419314a4ea8e23c8ad89902f (diff)
downloadgnunet-baa30837717d5bb20e3d030f76f253ab34c6ea02.tar.gz
gnunet-baa30837717d5bb20e3d030f76f253ab34c6ea02.zip
-fix
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index 5dc52bcfc..429426701 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -480,11 +480,11 @@ namestore_sqlite_put_records (void *cls,
480 GNUNET_CRYPTO_hash (name, name_len, &nh); 480 GNUNET_CRYPTO_hash (name, name_len, &nh);
481 memset (&zone_delegation, 0, sizeof (zone_delegation)); 481 memset (&zone_delegation, 0, sizeof (zone_delegation));
482 for (i=0;i<rd_count;i++) 482 for (i=0;i<rd_count;i++)
483 if (rd->record_type == GNUNET_GNS_TYPE_PKEY) 483 if (rd[i].record_type == GNUNET_GNS_TYPE_PKEY)
484 { 484 {
485 GNUNET_assert (sizeof (GNUNET_HashCode) == rd->data_size); 485 GNUNET_assert (sizeof (GNUNET_HashCode) == rd[i].data_size);
486 memcpy (&zone_delegation, 486 memcpy (&zone_delegation,
487 rd->data, 487 rd[i].data,
488 sizeof (GNUNET_HashCode)); 488 sizeof (GNUNET_HashCode));
489 break; 489 break;
490 } 490 }