summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-12-14 16:16:23 +1100
committerAmitay Isaacs <amitay@gmail.com>2011-12-23 16:17:09 +1100
commit0120a397a73a8752c8eac4d2046c43beffe14672 (patch)
tree6f45a3c2ccc0250d15776491233c2a2121cadfb2 /source4/rpc_server
parentecbc747ca57e11538c872dfc977eebec8aa8807e (diff)
downloadsamba-0120a397a73a8752c8eac4d2046c43beffe14672.tar.gz
samba-0120a397a73a8752c8eac4d2046c43beffe14672.tar.bz2
samba-0120a397a73a8752c8eac4d2046c43beffe14672.zip
s4:rpc-dnsserver: For PTR records, use dns_name_equal instead of strcmp to compare
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dnsserver/dnsdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/dnsserver/dnsdata.c b/source4/rpc_server/dnsserver/dnsdata.c
index d9e708f457..535996036d 100644
--- a/source4/rpc_server/dnsserver/dnsdata.c
+++ b/source4/rpc_server/dnsserver/dnsdata.c
@@ -946,7 +946,7 @@ bool dns_record_match(struct dnsp_DnssrvRpcRecord *rec1, struct dnsp_DnssrvRpcRe
rec1->data.soa.minimum == rec2->data.soa.minimum;
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_MX:
return rec1->data.mx.wPriority == rec2->data.srv.wPriority &&