summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/common/ldb_utf8.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c
index 4a29ac45f7..c2d31d440b 100644
--- a/source4/lib/ldb/common/ldb_utf8.c
+++ b/source4/lib/ldb/common/ldb_utf8.c
@@ -59,15 +59,7 @@ char *ldb_casefold(void *mem_ctx, const char *s)
*/
int ldb_caseless_cmp(const char *s1, const char *s2)
{
- int i;
- for (i=0;s1[i] != 0;i++) {
- int c1 = toupper((unsigned char)s1[i]),
- c2 = toupper((unsigned char)s2[i]);
- if (c1 != c2) {
- return c1 - c2;
- }
- }
- return s2[i];
+ return strcasecmp(s1, s2);
}
/*