From: Andrew Bartlett Date: Fri, 19 Dec 2014 01:40:28 +0000 (+1300) Subject: dsdb: Use ldb_attr_cmp() for comparing objectclass names X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=e9f6dc730df7c496b743f258b03d6fbcef76211e dsdb: Use ldb_attr_cmp() for comparing objectclass names This is the same as strcasecmp, but it is best to remain consistent. Pair-programmed-with: Garming Sam Signed-off-by: Garming Sam Signed-off-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/dns_notify.c b/source4/dsdb/samdb/ldb_modules/dns_notify.c index 28a1be960ca..2d3ed86163b 100644 --- a/source4/dsdb/samdb/ldb_modules/dns_notify.c +++ b/source4/dsdb/samdb/ldb_modules/dns_notify.c @@ -160,7 +160,7 @@ static int dns_notify_add(struct ldb_module *module, struct ldb_request *req) return ldb_operr(ldb); } - if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { + if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { data->reload_zones = true; break; } @@ -233,7 +233,7 @@ static int dns_notify_modify(struct ldb_module *module, struct ldb_request *req) return ldb_operr(ldb); } - if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { + if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { data->reload_zones = true; break; } @@ -306,7 +306,7 @@ static int dns_notify_delete(struct ldb_module *module, struct ldb_request *req) return ldb_operr(ldb); } - if (strcasecmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { + if (ldb_attr_cmp(objectclass->lDAPDisplayName, "dnsZone") == 0) { data->reload_zones = true; break; }