From: Remi Gacogne Date: Thu, 15 Dec 2016 09:23:04 +0000 (+0100) Subject: rec: Clean up a weird construct left over from the shared_ptr -> stack move X-Git-Tag: dnsdist-1.1.0~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4758%2Fhead;p=thirdparty%2Fpdns.git rec: Clean up a weird construct left over from the shared_ptr -> stack move --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 650ac37089..ba7c1063d2 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; - auto dq = RecursorLua4::DNSQuestion(requestor, ns, query, qtype.getCode(), isTcp, variableAnswer, wantsRPZ); + RecursorLua4::DNSQuestion dq(requestor, ns, query, qtype.getCode(), isTcp, variableAnswer, wantsRPZ); dq.currentRecords = &res; return genhook(d_preoutquery, dq, ret);