From: Remi Gacogne Date: Mon, 1 Aug 2016 12:46:48 +0000 (+0200) Subject: rec: Set `dq.rcode` before calling postresolve X-Git-Tag: rec-4.0.2~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4264%2Fhead;p=thirdparty%2Fpdns.git rec: Set `dq.rcode` before calling postresolve --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 0db7ef432f..51e51112d7 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -521,6 +521,7 @@ bool RecursorLua4::genhook(luacall_t& func, const ComboAddress& remote,const Com dq->tag = tag; dq->ednsOptions = ednsOpts; dq->isTcp = isTcp; + dq->rcode = ret; dq->policyTags = policyTags; bool handled=func(dq); if(variable) *variable |= dq->variable; // could still be set to indicate this *name* is variable, even if not 'handled'