diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-04 10:49:47 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-04 22:07:24 +0100 |
commit | ea12adf544ffaf86a7b323c60c7f9dfbede87808 (patch) | |
tree | 2e2c317f24fee761b89afdd6fc4bf0ff81218834 /source4/dsdb/samdb/ldb_modules | |
parent | 349b9b72ec36194a1275eaa42ca145071256b623 (diff) | |
download | samba-ea12adf544ffaf86a7b323c60c7f9dfbede87808.tar.gz samba-ea12adf544ffaf86a7b323c60c7f9dfbede87808.tar.bz2 samba-ea12adf544ffaf86a7b323c60c7f9dfbede87808.zip |
s4/ldb - remove now superflous "ldb_dn_validate" checks
If we immediately afterwards perform an LDB base operation then we don't
need an explicit "ldb_dn_validate" check anymore (only OOM makes sense).
Reviewed by: Tridge
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index be60d89638..30fa4d9c51 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -103,7 +103,7 @@ static int expand_dn_in_message(struct ldb_module *module, struct ldb_message *m } dn = ldb_dn_new(tmp_ctx, ldb, dn_string); - if (!ldb_dn_validate(dn)) { + if (dn == NULL) { talloc_free(tmp_ctx); return ldb_operr(ldb); } |