From f67ae788cf8a678af0e309c8527f2b25c98b557b Mon Sep 17 00:00:00 2001 From: Guenter Kukkukk Date: Sun, 14 Apr 2013 19:39:02 +0200 Subject: samba-tool - MX records cannot be deleted (part2) I missed this one, also a wrong compare of MX vs. SRV record Signed-off-by: Guenter Kukkukk Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Sun Apr 14 22:43:07 CEST 2013 on sn-devel-104 --- source4/rpc_server/dnsserver/dnsdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/rpc_server/dnsserver/dnsdata.c b/source4/rpc_server/dnsserver/dnsdata.c index 09dba53aa0..f0584a9811 100644 --- a/source4/rpc_server/dnsserver/dnsdata.c +++ b/source4/rpc_server/dnsserver/dnsdata.c @@ -970,7 +970,7 @@ bool dns_record_match(struct dnsp_DnssrvRpcRecord *rec1, struct dnsp_DnssrvRpcRe return dns_name_equal(rec1->data.ptr, rec2->data.ptr); case DNS_TYPE_MX: - return rec1->data.mx.wPriority == rec2->data.srv.wPriority && + return rec1->data.mx.wPriority == rec2->data.mx.wPriority && dns_name_equal(rec1->data.mx.nameTarget, rec2->data.mx.nameTarget); case DNS_TYPE_TXT: -- cgit