diff options
author | Simo Sorce <idra@samba.org> | 2005-09-14 22:39:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:09 -0500 |
commit | 2b2e1337523aa45f2028c15d46471e59e898ee50 (patch) | |
tree | b2c28c1109d2a064a5ca81a9fc87e7efdc296f42 | |
parent | 3afbbc7baee86c422c04fc7909eb70a47b76cb64 (diff) | |
download | samba-2b2e1337523aa45f2028c15d46471e59e898ee50.tar.gz samba-2b2e1337523aa45f2028c15d46471e59e898ee50.tar.bz2 samba-2b2e1337523aa45f2028c15d46471e59e898ee50.zip |
r10231: seem I flipped these, fix.
(This used to be commit 8ddf4de162f42ed53ab0603dd0e1536796f9197e)
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index d1a311dad6..2cd7d590fe 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -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); |