[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13217 - gnunet/src/block
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13217 - gnunet/src/block |
Date: |
Fri, 8 Oct 2010 11:03:37 +0200 |
Author: toelke
Date: 2010-10-08 11:03:37 +0200 (Fri, 08 Oct 2010)
New Revision: 13217
Modified:
gnunet/src/block/plugin_block_dns.c
Log:
If I hashed the whole block I could not retrieve it without knowing it...
Modified: gnunet/src/block/plugin_block_dns.c
===================================================================
--- gnunet/src/block/plugin_block_dns.c 2010-10-08 07:36:37 UTC (rev 13216)
+++ gnunet/src/block/plugin_block_dns.c 2010-10-08 09:03:37 UTC (rev 13217)
@@ -100,7 +100,8 @@
{
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13217 - gnunet/src/block,
gnunet <=