From 574b95cde0d9c330d4175336548f7ae5f2cde82f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 1 Aug 2016 14:46:48 +0200 Subject: [PATCH] rec: Set `dq.rcode` before calling postresolve --- pdns/lua-recursor4.cc | 1 + 1 file changed, 1 insertion(+) 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' -- 2.47.2