From 349b9b72ec36194a1275eaa42ca145071256b623 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 4 Mar 2011 10:44:22 +0100 Subject: s4:dsdb - we don't need to check if a DN != NULL if we call "ldb_dn_validate" "ldb_dn_validate" is NULL-safe and does the check implicitly. Reviewed by: Tridge --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index fce4592895..7412d29267 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -147,7 +147,7 @@ static struct ldb_val objectCategory_always_dn(struct ldb_module *module, TALLOC const struct ldb_schema_attribute *a = ldb_schema_attribute_by_name(ldb, "objectCategory"); dn = ldb_dn_from_ldb_val(ctx, ldb, val); - if (dn && ldb_dn_validate(dn)) { + if (ldb_dn_validate(dn)) { talloc_free(dn); return val_copy(module, ctx, val); } -- cgit