diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-05 08:42:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-05 08:42:12 +0000 |
commit | 19f38ae3d42baeb248892a781959803bc3441b74 (patch) | |
tree | d208de952910d54843e1713e40f2d68940c83e72 /src/block | |
parent | 2e1efb58832578c2460a5586181b0ba321a341c3 (diff) | |
download | gnunet-19f38ae3d42baeb248892a781959803bc3441b74.tar.gz gnunet-19f38ae3d42baeb248892a781959803bc3441b74.zip |
pack block, use big endian for time
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/plugin_block_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/plugin_block_dns.c b/src/block/plugin_block_dns.c index 22fae2c17..8e8aa3047 100644 --- a/src/block/plugin_block_dns.c +++ b/src/block/plugin_block_dns.c | |||
@@ -86,7 +86,7 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
86 | } | 86 | } |
87 | 87 | ||
88 | if (GNUNET_TIME_relative_get_zero ().rel_value == | 88 | if (GNUNET_TIME_relative_get_zero ().rel_value == |
89 | GNUNET_TIME_absolute_get_remaining (rec->expiration_time).rel_value) | 89 | GNUNET_TIME_absolute_get_remaining (GNUNET_TIME_absolute_ntoh (rec->expiration_time)).rel_value) |
90 | { | 90 | { |
91 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "DNS-Block is invalid: Timeout\n"); | 91 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "DNS-Block is invalid: Timeout\n"); |
92 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 92 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; |