]> granicus.if.org Git - pdns/commitdiff
Fix getSOA() in luabackend
authorzilopbg <ngshosting@gmail.com>
Thu, 27 Jul 2017 09:05:24 +0000 (12:05 +0300)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2017 09:05:24 +0000 (12:05 +0300)
modules/luabackend/minimal.cc

index 0f8e3df481be9d5822373a5020c91f05f3ee0d38..3d891e767be15fc9afc78763b6e47bd41ab5be2e 100644 (file)
@@ -202,6 +202,7 @@ bool LUABackend::getSOA(const string &name, SOAData &soadata, DNSPacket *p) {
 
     soadata.db = this;
     soadata.serial = 0;
+    soadata.qname = name;
     getValueFromTable(lua, "serial", soadata.serial);
     if (soadata.serial == 0) {
        lua_pop(lua, 1 );