From 3434140c0959d9608f9a4636df2060d00ac9b518 Mon Sep 17 00:00:00 2001 From: Guenter Kukkukk Date: Sun, 14 Apr 2013 06:17:28 +0200 Subject: 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 Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Sun Apr 14 08:46:07 CEST 2013 on sn-devel-104 --- source4/rpc_server/dnsserver/dnsdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/rpc_server') 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) { -- cgit