aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-01 16:57:36 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-01 16:58:28 +0100
commit7c8c596991f6397ec3ca1911638acb2de721c7a7 (patch)
tree36d91539c3ce9ea38f5e6a91fa0028b3147e521d /src/dns
parent70cf6979e8ee4221b20c00d59b9b30cea8c8ee32 (diff)
downloadgnunet-7c8c596991f6397ec3ca1911638acb2de721c7a7.tar.gz
gnunet-7c8c596991f6397ec3ca1911638acb2de721c7a7.zip
use NULL as flag for evaluation of query, ensure we pass non-NULL for reply_block to evaluate reply even if reply is zero bytes long
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/plugin_block_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c
index dc339dd25..8c6ec93ee 100644
--- a/src/dns/plugin_block_dns.c
+++ b/src/dns/plugin_block_dns.c
@@ -69,7 +69,7 @@ block_plugin_dns_evaluate (void *cls,
69 if (0 != xquery_size) 69 if (0 != xquery_size)
70 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; 70 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
71 71
72 if (0 == reply_block_size) 72 if (NULL == reply_block)
73 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; 73 return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
74 74
75 if (sizeof (struct GNUNET_DNS_Advertisement) != reply_block_size) 75 if (sizeof (struct GNUNET_DNS_Advertisement) != reply_block_size)