1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string

This commit is contained in:
Volker Lendecke 2006-12-06 11:45:33 +00:00 committed by Gerald (Jerry) Carter
parent 75555ae1c8
commit f64866a43f

View File

@ -296,9 +296,6 @@ static int ltdb_index_dn_objectclass(struct ldb_module *module,
struct dn_list *list2;
tree2.operation = LDB_OP_EQUALITY;
tree2.u.equality.attr = LTDB_OBJECTCLASS;
if (!tree2.u.equality.attr) {
return -1;
}
tree2.u.equality.value.data =
(uint8_t *)talloc_strdup(list, subclasses[i]);
if (tree2.u.equality.value.data == NULL) {