summaryrefslogtreecommitdiff
path: root/modules/dns.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 10:16:05 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 10:19:44 +0000
commit7640fad30cc2a3d61e67a7075c27f26400d4779f (patch)
treef313f0e7cf6fafd1c94f7bd2b3650a207f941ccc /modules/dns.cpp
parent9f6d3787559febb48611b1477eaa6a35beadf71a (diff)
Simplify several boolean expressions.
Diffstat (limited to 'modules/dns.cpp')
-rw-r--r--modules/dns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dns.cpp b/modules/dns.cpp
index 221b533c8..0430f0817 100644
--- a/modules/dns.cpp
+++ b/modules/dns.cpp
@@ -72,7 +72,7 @@ class Packet final
throw SocketException("Unable to unpack name - bogus compression header");
/* Place pos at the second byte of the first (farthest) compression pointer */
- if (compressed == false)
+ if (!compressed)
{
++pos;
compressed = true;
@@ -95,7 +95,7 @@ class Packet final
name += input[pos_ptr + i];
pos_ptr += offset + 1;
- if (compressed == false)
+ if (!compressed)
/* Move up pos */
pos = pos_ptr;
}