diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-10-08 09:03:37 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-10-08 09:03:37 +0000 |
commit | b58d0e83e888c877626533d54a41e7dc359c9de2 (patch) | |
tree | 4377e1978a59215e5a181bed5fce97671ca07dcc /src/block | |
parent | 018e0fd04ba09798ffd202324e1fa0c34b562189 (diff) | |
download | gnunet-b58d0e83e888c877626533d54a41e7dc359c9de2.tar.gz gnunet-b58d0e83e888c877626533d54a41e7dc359c9de2.zip |
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.c | 3 |
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 | ||