aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2010-10-08 09:03:37 +0000
committerPhilipp Tölke <toelke@in.tum.de>2010-10-08 09:03:37 +0000
commitb58d0e83e888c877626533d54a41e7dc359c9de2 (patch)
tree4377e1978a59215e5a181bed5fce97671ca07dcc /src/block
parent018e0fd04ba09798ffd202324e1fa0c34b562189 (diff)
If I hashed the whole block I could not retrieve it without knowing it...
Diffstat (limited to 'src/block')
-rw-r--r--src/block/plugin_block_dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block/plugin_block_dns.c b/src/block/plugin_block_dns.c
index 8435c1be0c..6fbb9b6f2b 100644
--- a/src/block/plugin_block_dns.c
+++ b/src/block/plugin_block_dns.c
@@ -100,7 +100,8 @@ block_plugin_dht_get_key (void *cls,
{
if (type != GNUNET_BLOCK_TYPE_DNS)
return GNUNET_SYSERR;
- GNUNET_CRYPTO_hash(block, block_size, key);
+ const struct GNUNET_DNS_Record* rec = block;
+ GNUNET_CRYPTO_hash(rec->name, rec->namelen, key);
return GNUNET_OK;
}