]> granicus.if.org Git - pdns/commitdiff
Backport bugfix from #6172: 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)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 15 Feb 2018 15:14:51 +0000 (16:14 +0100)
(cherry picked from commit 668624c8c617a40482a28b3c168701abed55aef0)

pdns/slavecommunicator.cc

index 4b6da4dbfdd1dc0901624da36fa629e899ee2707..732699024db143c03e8ceee16f95f5a3def09aed 100644 (file)
@@ -137,8 +137,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);
           }
         }