From 31e806d7fad26b226252e56550b65555d433549c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 15 Feb 2019 13:17:55 +0100 Subject: [PATCH] rec: Set haveEDNS only once --- pdns/pdns_recursor.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f4842e9e7..78833b9ed 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1044,7 +1044,6 @@ static void startDoResolve(void *p) maxanswersize = min(static_cast(edo.d_packetsize >= 512 ? edo.d_packetsize : 512), g_udpTruncationThreshold); } ednsOpts = edo.d_options; - haveEDNS=true; maxanswersize -= 11; // EDNS header size for (const auto& o : edo.d_options) { -- 2.40.0