From 703e8e239a038f736c12bafd56b5d3675052b89c Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 13 Sep 2024 09:20:42 +0200 Subject: [PATCH] tidy --- pdns/sdig.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/sdig.cc b/pdns/sdig.cc index d4cf2cace6..72483aa8e1 100644 --- a/pdns/sdig.cc +++ b/pdns/sdig.cc @@ -89,7 +89,8 @@ static void fillPacket(vector& packet, const string& q, const string& t static void printReply(const string& reply, bool showflags, bool hidesoadetails, bool dumpluaraw, bool ignoreId = false) { MOADNSParser mdp(false, reply); - if (!ignoreId && !s_expectedIDs.count(ntohs(mdp.d_header.id))) { + + if (!ignoreId && (s_expectedIDs.count(ntohs(mdp.d_header.id)) == 0U)) { cout << "ID " << ntohs(mdp.d_header.id) << " was not expected, this response was not meant for us!"<