Tell core that we want to have this packet delivered
[oweals/gnunet.git] / src / block / plugin_block_dns.c
index 205cff4b8b869cd234c59d248f362146d73da11f..4321baf34fe12155ac39fa57e6c3408489dbdd07 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #include "platform.h"
-#include "plugin_block.h"
+#include "gnunet_block_plugin.h"
 #include "block_dns.h"
 #include "gnunet_signatures.h"
 
@@ -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),