From: Christian Grothoff Date: Tue, 6 Mar 2012 10:07:53 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~14404 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=baa30837717d5bb20e3d030f76f253ab34c6ea02;p=oweals%2Fgnunet.git -fix --- 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, GNUNET_CRYPTO_hash (name, name_len, &nh); memset (&zone_delegation, 0, sizeof (zone_delegation)); for (i=0;irecord_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; }