From 7c8c596991f6397ec3ca1911638acb2de721c7a7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Feb 2017 16:57:36 +0100 Subject: 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 --- src/dns/plugin_block_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dns') 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, if (0 != xquery_size) return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; - if (0 == reply_block_size) + if (NULL == reply_block) return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; if (sizeof (struct GNUNET_DNS_Advertisement) != reply_block_size) -- cgit v1.2.3