diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-01 16:57:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-01 16:58:28 +0100 |
commit | 7c8c596991f6397ec3ca1911638acb2de721c7a7 (patch) | |
tree | 36d91539c3ce9ea38f5e6a91fa0028b3147e521d /src/dns/plugin_block_dns.c | |
parent | 70cf6979e8ee4221b20c00d59b9b30cea8c8ee32 (diff) | |
download | gnunet-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/plugin_block_dns.c')
-rw-r--r-- | src/dns/plugin_block_dns.c | 2 |
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) |