From 668624c8c617a40482a28b3c168701abed55aef0 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Thu, 11 Jan 2018 17:49:25 +0800 Subject: [PATCH] IXFR shouldn't remove RRs which aren't in deleted list --- pdns/slavecommunicator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 84fb2d885..ce21fe9eb 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -136,8 +136,9 @@ void CommunicatorClass::ixfrSuck(const DNSName &domain, const TSIGTriplet& tt, c vector 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); } } -- 2.40.0