From ef88cbec65639db2a7791af58aa167cbfcb2b245 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 15 Dec 2016 10:23:04 +0100 Subject: [PATCH] rec: Clean up a weird construct left over from the shared_ptr -> stack move --- pdns/lua-recursor4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2