diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-11-14 17:16:39 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-11-17 10:05:37 +1100 |
commit | 9abd45979ee0415c16775f6dfd17a6e421091d5c (patch) | |
tree | f0f8192ff53150315a0f008e785cab31f985c6b6 | |
parent | 1d9c88b3885728aba3d7fef85d80501125011f1c (diff) | |
download | samba-9abd45979ee0415c16775f6dfd17a6e421091d5c.tar.gz samba-9abd45979ee0415c16775f6dfd17a6e421091d5c.tar.bz2 samba-9abd45979ee0415c16775f6dfd17a6e421091d5c.zip |
Always validate a DN when constructing from a string in python
-rw-r--r-- | source4/lib/ldb/ldb.i | 2 |
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: |