Refactoring GNUNET_time
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 09:27:40 +0000 (09:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 09:27:40 +0000 (09:27 +0000)
src/block/plugin_block_dns.c

index 205cff4b8b869cd234c59d248f362146d73da11f..338e07dc297ac2f8704589e33a4e284be4b06718 100644 (file)
@@ -74,7 +74,7 @@ block_plugin_dns_evaluate (void *cls,
     if (ntohl(rec->purpose.size) != sizeof(struct GNUNET_DNS_Record) - sizeof(struct GNUNET_CRYPTO_RsaSignature))
       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
 
-    if (GNUNET_TIME_relative_get_zero().value == GNUNET_TIME_absolute_get_remaining(rec->expiration_time).value)
+    if (GNUNET_TIME_relative_get_zero().rel_value == GNUNET_TIME_absolute_get_remaining(rec->expiration_time).rel_value)
       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
 
     if (GNUNET_OK != GNUNET_CRYPTO_rsa_verify (htonl(GNUNET_SIGNATURE_PURPOSE_DNS_RECORD),