summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-03-02 00:23:00 +1100
committerAmitay Isaacs <amitay@samba.org>2012-03-01 15:58:05 +0100
commitf5f17b19af0ce46539f150c5dbf232a7f49bccc7 (patch)
treee2dd7b1ae02469edc0f7e7937ceda3eef4fbd586 /source4/dns_server
parent78446b42b7bed565dff75db73e8efcd3835808c0 (diff)
downloadsamba-f5f17b19af0ce46539f150c5dbf232a7f49bccc7.tar.gz
samba-f5f17b19af0ce46539f150c5dbf232a7f49bccc7.tar.bz2
samba-f5f17b19af0ce46539f150c5dbf232a7f49bccc7.zip
dlz_bind9: Match PTR records as DNS names and not just strings
This fixes the dynamic update of PTR records. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Mar 1 15:58:05 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dlz_bind9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index f383e948c5..cbbdbcee84 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);