summaryrefslogtreecommitdiff
path: root/source4/rpc_server/dnsserver
diff options
context:
space:
mode:
authorGuenter Kukkukk <kukks@samba.org>2013-04-14 06:17:28 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-04-14 08:46:07 +0200
commit3434140c0959d9608f9a4636df2060d00ac9b518 (patch)
tree375f536ed83e113e73cfe269f4b16784ad4c10ba /source4/rpc_server/dnsserver
parent41333f92d0c78e44a524f2248f5ae641ad59abf3 (diff)
downloadsamba-3434140c0959d9608f9a4636df2060d00ac9b518.tar.gz
samba-3434140c0959d9608f9a4636df2060d00ac9b518.tar.bz2
samba-3434140c0959d9608f9a4636df2060d00ac9b518.zip
samba-tool - MX records cannot be deleted (error in called C-program)
Only matching UNION-members should be compared. MX vs. SRV record Signed-off-by: Guenter Kukkukk <kukks@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Apr 14 08:46:07 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/dnsserver')
-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 3dc7dccf28..09dba53aa0 100644
--- a/source4/rpc_server/dnsserver/dnsdata.c
+++ b/source4/rpc_server/dnsserver/dnsdata.c
@@ -971,7 +971,7 @@ bool dns_record_match(struct dnsp_DnssrvRpcRecord *rec1, struct dnsp_DnssrvRpcRe
case DNS_TYPE_MX:
return rec1->data.mx.wPriority == rec2->data.srv.wPriority &&
- dns_name_equal(rec1->data.mx.nameTarget, rec2->data.srv.nameTarget);
+ dns_name_equal(rec1->data.mx.nameTarget, rec2->data.mx.nameTarget);
case DNS_TYPE_TXT:
if (rec1->data.txt.count != rec2->data.txt.count) {