aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
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 8435c1be0..6fbb9b6f2 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,
100{ 100{
101 if (type != GNUNET_BLOCK_TYPE_DNS) 101 if (type != GNUNET_BLOCK_TYPE_DNS)
102 return GNUNET_SYSERR; 102 return GNUNET_SYSERR;
103 GNUNET_CRYPTO_hash(block, block_size, key); 103 const struct GNUNET_DNS_Record* rec = block;
104 GNUNET_CRYPTO_hash(rec->name, rec->namelen, key);
104 return GNUNET_OK; 105 return GNUNET_OK;
105} 106}
106 107