From: Douglas Bagnall Date: Mon, 12 Apr 2021 21:57:33 +0000 (+1200) Subject: dns common: dns_records_match() matches tombstones X-Git-Tag: tevent-0.11.0~399 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=341febfb264c68b2e459e066c0824b38cb6be84a;p=thirdparty%2Fsamba.git dns common: dns_records_match() matches tombstones This will be needed by the RPC server. Other callers already filter out tombstones, so this is OK. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/dns_server/dnsserver_common.c b/source4/dns_server/dnsserver_common.c index bf0ce7d3e89..b0b430342ad 100644 --- a/source4/dns_server/dnsserver_common.c +++ b/source4/dns_server/dnsserver_common.c @@ -1341,6 +1341,8 @@ bool dns_records_match(struct dnsp_DnssrvRpcRecord *rec1, rec1->data.soa.retry == rec2->data.soa.retry && rec1->data.soa.expire == rec2->data.soa.expire && rec1->data.soa.minimum == rec2->data.soa.minimum; + case DNS_TYPE_TOMBSTONE: + return true; default: break; }