summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-30 10:03:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:40 -0500
commit6045b6f314be519cfb7faeeef6b3daaac673582f (patch)
treef32f2a119fe0f78322553fd35e90dce934a8b823 /source4/lib/ldb/common
parent9da0c020571d901569e552224bfedd8bedbf43ba (diff)
downloadsamba-6045b6f314be519cfb7faeeef6b3daaac673582f.tar.gz
samba-6045b6f314be519cfb7faeeef6b3daaac673582f.tar.bz2
samba-6045b6f314be519cfb7faeeef6b3daaac673582f.zip
r19964: make debuging easier and report usefull error messages
metze (This used to be commit f129d78256d965d52e80aedfa76c7c079e611c5f)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/attrib_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/attrib_handlers.c b/source4/lib/ldb/common/attrib_handlers.c
index f563865c03..7a9fd1f9da 100644
--- a/source4/lib/ldb/common/attrib_handlers.c
+++ b/source4/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);