Add new script for building IDL files in librpc/idl, generating both
[sfrench/samba-autobuild/.git] / source4 / lib / ldb / ldb_wrap.c
index 4a34c1c998d981d48f0194341748ec1e92c11d94..e290b851f381916a2c4f7757418aa8d543a73d02 100644 (file)
@@ -2684,7 +2684,7 @@ SWIGINTERN ldb_dn *new_ldb_dn(ldb *ldb_ctx,char const *str){
                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: