From 54449c35038d67fc01f1d5b19e49d7aa8f10dae1 Mon Sep 17 00:00:00 2001 From: phonedph1 Date: Mon, 30 Jul 2018 13:45:05 +0000 Subject: [PATCH] Don't use a seperate hton variable --- pdns/dnsdistdist/dnsdist-rules.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-rules.hh b/pdns/dnsdistdist/dnsdist-rules.hh index 2b9349e78f..1f63f9e0dd 100644 --- a/pdns/dnsdistdist/dnsdist-rules.hh +++ b/pdns/dnsdistdist/dnsdist-rules.hh @@ -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 { -- 2.47.2