gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 543d8cafc55fde62db363750d9a75536c73cbd79
parent 6a327b51613a52e4f1341a0ddaa3946d3810d1fd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 18 Oct 2013 13:41:13 +0000

-use fixed records

Diffstat:
Msrc/gnsrecord/gnsrecord_crypto.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c @@ -107,7 +107,7 @@ GNUNET_GNSRECORD_block_create (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) { /* encrypted blocks must never have relative expiration times, convert! */ - rdc[i].flags ^= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; + rdc[i].flags &= ~GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; rdc[i].expiration_time += now.abs_value_us; } } @@ -115,7 +115,7 @@ GNUNET_GNSRECORD_block_create (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key, rd_count_nbo = htonl (rd_count); memcpy (payload, &rd_count_nbo, sizeof (uint32_t)); GNUNET_assert (payload_len == - GNUNET_GNSRECORD_records_serialize (rd_count, rd, + GNUNET_GNSRECORD_records_serialize (rd_count, rdc, payload_len, &payload[sizeof (uint32_t)])); block = GNUNET_malloc (sizeof (struct GNUNET_GNSRECORD_Block) + sizeof (uint32_t) + payload_len);