]> granicus.if.org Git - pdns/commitdiff
IXFR shouldn't remove RRs which aren't in deleted list
authorLeon Xu <cassvin91@gmail.com>
Thu, 11 Jan 2018 09:49:25 +0000 (17:49 +0800)
committerLeon Xu <cassvin91@gmail.com>
Thu, 11 Jan 2018 09:49:25 +0000 (17:49 +0800)
pdns/slavecommunicator.cc

index 84fb2d8852b2a2a8daeb3c84d3cf33064b3f844e..ce21fe9eb0e4b4f944a4519ef9293f44fb5a8901 100644 (file)
@@ -136,8 +136,9 @@ void CommunicatorClass::ixfrSuck(const DNSName &domain, const TSIGTriplet& tt, c
         vector<DNSRecord> rrset;
         {
           DNSZoneRecord zrr;
-          B.lookup(QType(g.first.second), g.first.first, 0, di.id);
+          B.lookup(QType(g.first.second), g.first.first+domain, 0, di.id);
           while(B.get(zrr)) {
+            zrr.dr.d_name.makeUsRelative(domain);
             rrset.push_back(zrr.dr);
           }
         }