From f94c53dc0e48e4bed9de48b90ad48b08e58dcd19 Mon Sep 17 00:00:00 2001 From: Fusl Date: Sat, 25 Jan 2014 20:11:36 +0100 Subject: [PATCH] Map qclass from ret correctly to Lua --- pdns/lua-pdns.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pdns/lua-pdns.cc b/pdns/lua-pdns.cc index 780825044..41e96e42b 100644 --- a/pdns/lua-pdns.cc +++ b/pdns/lua-pdns.cc @@ -108,6 +108,9 @@ void pushResourceRecordsTable(lua_State* lua, const vector& r lua_pushnumber(lua, rr.d_place); lua_setfield(lua, -2, "place"); + lua_pushnumber(lua, rr.qclass); + lua_setfield(lua, -2, "qclass"); + lua_settable(lua, -3); // pushes the table we just built into the master table at position pushed above } } @@ -196,6 +199,12 @@ void popResourceRecordsTable(lua_State *lua, const string &query, vector