summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-12-06 16:05:26 +1100
committerAndrew Bartlett <abartlet@samba.org>2013-05-30 10:43:46 +1000
commitcc103a8187317047347a679e42b076de7d69d181 (patch)
treefd046bd44b51a5b38719cd6187e34eb8e748838e /source4/rpc_server
parentb5c3ec0abc22145841b9b528cb55ec381e9c0d06 (diff)
downloadsamba-cc103a8187317047347a679e42b076de7d69d181.tar.gz
samba-cc103a8187317047347a679e42b076de7d69d181.tar.bz2
samba-cc103a8187317047347a679e42b076de7d69d181.zip
s4-rpc: dnsserver: dns_name_equal() returns boolean
Remove the remaining check for return value after strcmp() was changed to dns_name_equal(). Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dnsserver/dnsdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/dnsserver/dnsdata.c b/source4/rpc_server/dnsserver/dnsdata.c
index 87b7d87ae3..fb2547ff7e 100644
--- a/source4/rpc_server/dnsserver/dnsdata.c
+++ b/source4/rpc_server/dnsserver/dnsdata.c
@@ -958,8 +958,8 @@ bool dns_record_match(struct dnsp_DnssrvRpcRecord *rec1, struct dnsp_DnssrvRpcRe
return dns_name_equal(rec1->data.cname, rec2->data.cname);
case DNS_TYPE_SOA:
- return dns_name_equal(rec1->data.soa.mname, rec2->data.soa.mname) == 0 &&
- dns_name_equal(rec1->data.soa.rname, rec2->data.soa.rname) == 0 &&
+ return dns_name_equal(rec1->data.soa.mname, rec2->data.soa.mname) &&
+ dns_name_equal(rec1->data.soa.rname, rec2->data.soa.rname) &&
rec1->data.soa.serial == rec2->data.soa.serial &&
rec1->data.soa.refresh == rec2->data.soa.refresh &&
rec1->data.soa.retry == rec2->data.soa.retry &&