From: Fusl Date: Sat, 25 Jan 2014 19:11:36 +0000 (+0100) Subject: Map qclass from ret correctly to Lua X-Git-Tag: rec-3.6.0-rc1~221^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f94c53dc0e48e4bed9de48b90ad48b08e58dcd19;p=thirdparty%2Fpdns.git Map qclass from ret correctly to Lua --- diff --git a/pdns/lua-pdns.cc b/pdns/lua-pdns.cc index 780825044f..41e96e42b9 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