]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't use a seperate hton variable
authorphonedph1 <phoned@gmail.com>
Mon, 30 Jul 2018 13:45:05 +0000 (13:45 +0000)
committerphonedph1 <phoned@gmail.com>
Mon, 30 Jul 2018 13:45:05 +0000 (13:45 +0000)
pdns/dnsdistdist/dnsdist-rules.hh

index 2b9349e78fdd56fc229a27f56fc8960603995c9e..1f63f9e0dd84961f1d63a99f0536c10fa917a79b 100644 (file)
@@ -603,11 +603,10 @@ class DSTPortRule : public DNSRule
 public:
   DSTPortRule(uint16_t port) : d_port(port)
   {
-    d_port_htons = htons(d_port);
   }
   bool matches(const DNSQuestion* dq) const override
   {
-    return d_port_htons == dq->local->sin4.sin_port;
+    return htons(d_port) == dq->local->sin4.sin_port;
   }
   string toString() const override
   {