From cf86b45f562d7b8c68457cd5e9e54ff055946586 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 17 Jun 2022 10:43:32 +0200 Subject: [PATCH] Process review comment: move var to inner block --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 5beb4d400e..8fdc2bd26f 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1488,8 +1488,8 @@ LWResult::Result SyncRes::asyncresolveWrapper(const ComboAddress& ip, bool ednsM { auto lock = s_ednsstatus.lock(); auto ednsstatus = lock->insert(ip).first; // does this include port? YES - auto &ind = lock->get(); if (ednsstatus->modeSetAt && ednsstatus->modeSetAt + 3600 < d_now.tv_sec) { + auto &ind = lock->get(); lock->reset(ind, ednsstatus); } mode = ednsstatus->mode; -- 2.47.2