From d984aab66e603a385f389e32bd921111286a1da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Preu=C3=9F?= Date: Sat, 23 Jan 2021 21:55:27 +0100 Subject: [PATCH] Don't display unrelated CNAME queries when filtering for specific domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Preuß --- src/api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.c b/src/api/api.c index a86442ae..b93bce7b 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -914,7 +914,7 @@ void getAllQueries(const char *client_message, const int *sock) // If the domain of this query did not match, the CNAME // domain may still match - we have to check it in // addition if this query is of CNAME blocked type - else if(query->CNAME_domainID > -1) + else if(query->CNAME_domainID == domainid) { // Get this query }