summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-12-06 15:58:02 -0800
committerKarolin Seeger <kseeger@samba.org>2013-12-26 19:27:02 +0100
commit5438b4840dc60b9c026388f405c0795051ed4b67 (patch)
treed0e67dc88ded5df27c1f05a683ab66982c1dcd87 /lib
parent80c09fc1cd5a53271e82571f1423f6da10be898c (diff)
downloadsamba-5438b4840dc60b9c026388f405c0795051ed4b67.tar.gz
ldb: bad if test in ldb_comparison_fold()
Found by David Binderman <dcb314@hotmail.com> BUG: https://bugzilla.samba.org/show_bug.cgi?id=10305 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Sat Dec 7 11:10:47 CET 2013 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/attrib_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/common/attrib_handlers.c b/lib/ldb/common/attrib_handlers.c
index daeb422aca3..4b94d392cc6 100644
--- a/lib/ldb/common/attrib_handlers.c
+++ b/lib/ldb/common/attrib_handlers.c
@@ -254,7 +254,7 @@ int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx,
if (n2 == 0 && n1 != 0) {
return (int)toupper(*s1);
}
- if (n2 == 0 && n2 == 0) {
+ if (n1 == 0 && n2 == 0) {
return 0;
}
return (int)toupper(*s1) - (int)toupper(*s2);