From: Otto Moerbeek Date: Fri, 17 Jun 2022 08:43:32 +0000 (+0200) Subject: Process review comment: move var to inner block X-Git-Tag: auth-4.8.0-alpha0~55^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11601%2Fhead;p=thirdparty%2Fpdns.git Process review comment: move var to inner block --- 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;