summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-30 10:03:54 +0000
committerStefan Metzmacher <metze@samba.org>2006-11-30 10:03:54 +0000
commit8a23744f0aa152dadfde5962aeacf927d443b1f2 (patch)
tree55304e511d0d5d6c79b7eccab6dc55ab748e2b2b /source/lib/ldb/common
parentebab71f1ae9d14870880092ba70ca8e5e891c594 (diff)
downloadsamba-8a23744f0aa152dadfde5962aeacf927d443b1f2.tar.gz
samba-8a23744f0aa152dadfde5962aeacf927d443b1f2.tar.xz
samba-8a23744f0aa152dadfde5962aeacf927d443b1f2.zip
r19964: make debuging easier and report usefull error messages
metze
Diffstat (limited to 'source/lib/ldb/common')
-rw-r--r--source/lib/ldb/common/attrib_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/ldb/common/attrib_handlers.c b/source/lib/ldb/common/attrib_handlers.c
index f563865c037..7a9fd1f9da9 100644
--- a/source/lib/ldb/common/attrib_handlers.c
+++ b/source/lib/ldb/common/attrib_handlers.c
@@ -237,7 +237,7 @@ int ldb_canonicalise_dn(struct ldb_context *ldb, void *mem_ctx,
dn = ldb_dn_new(ldb, mem_ctx, (char *)in->data);
if ( ! ldb_dn_validate(dn)) {
- return -1;
+ return LDB_ERR_INVALID_DN_SYNTAX;
}
out->data = (uint8_t *)ldb_dn_alloc_casefold(mem_ctx, dn);