From: Martin Schanzenbach Date: Mon, 5 Mar 2012 23:28:29 +0000 (+0000) Subject: -PKEY is key no hash X-Git-Tag: initial-import-from-subversion-38251~14410 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cefb658764d69d55476c614f5f592fdccfcc5d62;p=oweals%2Fgnunet.git -PKEY is key no hash --- diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index ec81f7d00..2d660cb7e 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c @@ -480,12 +480,12 @@ 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_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);