git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3afbbc7
)
r10231: seem I flipped these, fix.
author
Simo Sorce
<idra@samba.org>
Wed, 14 Sep 2005 22:39:24 +0000
(22:39 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:38:09 +0000
(13:38 -0500)
(This used to be commit
8ddf4de162f42ed53ab0603dd0e1536796f9197e
)
source4/lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_dn.c
b/source4/lib/ldb/common/ldb_dn.c
index d1a311dad67bd96dfae20c1bd212e0c6d8828505..2cd7d590fe88fdb097d230e7a932d6ecc6862cef 100644
(file)
--- 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);