From: Remi Gacogne Date: Wed, 8 Feb 2017 10:57:41 +0000 (+0100) Subject: rec: Fix `remote`/`local` inversion in `preoutquery` X-Git-Tag: rec-4.1.0-alpha1~289^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4984%2Fhead;p=thirdparty%2Fpdns.git rec: Fix `remote`/`local` inversion in `preoutquery` `dq.remoteaddr` should hold the authoritative server address, but it was stored in `dq.localaddr` instead since ba21fcfedc103f12b6a8eadc17f2797b6d7ffb7b. --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 850a97d179..dc15ea2260 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -615,7 +615,7 @@ bool RecursorLua4::preoutquery(const ComboAddress& ns, const ComboAddress& reque { bool variableAnswer = false; bool wantsRPZ = false; - RecursorLua4::DNSQuestion dq(requestor, ns, query, qtype.getCode(), isTcp, variableAnswer, wantsRPZ); + RecursorLua4::DNSQuestion dq(ns, requestor, query, qtype.getCode(), isTcp, variableAnswer, wantsRPZ); dq.currentRecords = &res; return genhook(d_preoutquery, dq, ret);