summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-11-14 17:16:39 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-11-17 10:05:37 +1100
commit9abd45979ee0415c16775f6dfd17a6e421091d5c (patch)
treef0f8192ff53150315a0f008e785cab31f985c6b6 /source4/lib
parent1d9c88b3885728aba3d7fef85d80501125011f1c (diff)
downloadsamba-9abd45979ee0415c16775f6dfd17a6e421091d5c.tar.gz
samba-9abd45979ee0415c16775f6dfd17a6e421091d5c.tar.bz2
samba-9abd45979ee0415c16775f6dfd17a6e421091d5c.zip
Always validate a DN when constructing from a string in python
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 6187096ab9..6ecbfbfa08 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -216,7 +216,7 @@ typedef struct ldb_dn {
we do it this way... */
talloc_steal(NULL, ret);
- if (ret == NULL)
+ if (ret == NULL || !ldb_dn_validate(ret))
SWIG_exception(SWIG_ValueError,
"unable to parse dn string");
fail: