From: Amitay Isaacs Date: Thu, 1 Mar 2012 13:23:00 +0000 (+1100) Subject: dlz_bind9: Match PTR records as DNS names and not just strings X-Git-Tag: tdb-1.2.10~488 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5f17b19af0ce46539f150c5dbf232a7f49bccc7;p=thirdparty%2Fsamba.git dlz_bind9: Match PTR records as DNS names and not just strings This fixes the dynamic update of PTR records. Autobuild-User: Amitay Isaacs Autobuild-Date: Thu Mar 1 15:58:05 CET 2012 on sn-devel-104 --- diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index f383e948c59..cbbdbcee849 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -1355,7 +1355,7 @@ static bool b9_record_match(struct dlz_bind9_data *state, } return status; case DNS_TYPE_PTR: - return strcmp(rec1->data.ptr, rec2->data.ptr) == 0; + return dns_name_equal(rec1->data.ptr, rec2->data.ptr); case DNS_TYPE_NS: return dns_name_equal(rec1->data.ns, rec2->data.ns);