summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 10:49:47 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 22:07:24 +0100
commitea12adf544ffaf86a7b323c60c7f9dfbede87808 (patch)
tree2e2c317f24fee761b89afdd6fc4bf0ff81218834 /source4/libnet
parent349b9b72ec36194a1275eaa42ca145071256b623 (diff)
downloadsamba-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/libnet')
-rw-r--r--source4/libnet/libnet_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 715f21b989..6e76df43e3 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -236,7 +236,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J
}
account_dn = ldb_dn_new(tmp_ctx, remote_ldb, account_dn_str);
- if (! ldb_dn_validate(account_dn)) {
+ if (account_dn == NULL) {
r->out.error_string = talloc_asprintf(r, "Invalid account dn: %s",
account_dn_str);
talloc_free(tmp_ctx);