1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

r10231: seem I flipped these, fix.

(This used to be commit 8ddf4de162f42ed53ab0603dd0e1536796f9197e)
This commit is contained in:
Simo Sorce 2005-09-14 22:39:24 +00:00 committed by Gerald (Jerry) Carter
parent 3afbbc7bae
commit 2b2e133752

View File

@ -518,12 +518,12 @@ int ldb_dn_cmp(struct ldb_context *ldb, const char *dn0, const char *dn1)
if (dn0 == NULL || dn1 == NULL) return dn1 - dn0;
edn0 = ldb_dn_explode_casefold(ldb, dn0);
if (edn0 == NULL) return 0;
if (edn0 == NULL) return 1;
edn1 = ldb_dn_explode_casefold(ldb, dn1);
if (edn1 == NULL) {
talloc_free(edn0);
return 0;
return -1;
}
ret = ldb_dn_compare(ldb, edn0, edn1);